Skip to content

Commit 9e67b0a

Browse files
committed
Inherit stdio when launching pythonExe, and use shell: true
Makes diagnosing issues with the python script easier as its output is forward to the terminal, and fixes issues with newer node versions that require shell: true when launching batch files
1 parent b7dfe52 commit 9e67b0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/odmRunner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module.exports = {
128128
env.ODM_OPTIONS_TMP_FILE = utils.tmpPath(".json");
129129
env.ODM_PATH = config.odm_path;
130130
let childProcess = spawn(pythonExe, [path.join(__dirname, "..", "helpers", "odmOptionsToJson.py"),
131-
"--project-path", config.odm_path, "bogusname"], { env });
131+
"--project-path", config.odm_path, "bogusname"], { env, stdio: 'inherit', shell: true });
132132

133133
// Cleanup on done
134134
let handleResult = (err, result) => {

0 commit comments

Comments
 (0)