pkg icon indicating copy to clipboard operation
pkg copied to clipboard

is it possible to pack a project with childprocess calling external python script?

Open ctlkkc opened this issue 7 years ago • 4 comments

As subject, especially if the python script also has dependencies: e.g.:

const spawn = require("child_process").spawn;

		const pyProg = spawn(config.python_path, [config.gsauth, token[1]]);
		pyProg.stdout.on('data', function (data) {
                    //do something here
		});

ctlkkc avatar Apr 11 '19 05:04 ctlkkc

did you solve this?

mursang avatar May 25 '20 12:05 mursang

This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label

github-actions[bot] avatar Apr 02 '21 00:04 github-actions[bot]

This issue is now closed due to inactivity, you can of course reopen or reference this issue if you see fit.

github-actions[bot] avatar Apr 08 '21 00:04 github-actions[bot]

Hi, I've come across the same issue and would love to know if anyone knows how to deal with it?

Node.js app that executes a python script with pythonApp = spawn('python', 'pathToScript.py'); and checks for pythonApp.stdout.on, pythonApp.stderr.on and pythonApp.on('exit'). I want to package it with PKG, but then the python can't open the pathToScript.py file.

FilipParyz avatar Jul 15 '22 11:07 FilipParyz