Merge pull request #235 from sylveon/master

Inherit stdio when launching pythonExe, and use shell: true
pull/237/head
Piero Toffanin 2025-06-23 17:51:18 +02:00 zatwierdzone przez GitHub
commit b69360929a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -128,7 +128,7 @@ module.exports = {
env.ODM_OPTIONS_TMP_FILE = utils.tmpPath(".json");
env.ODM_PATH = config.odm_path;
let childProcess = spawn(pythonExe, [path.join(__dirname, "..", "helpers", "odmOptionsToJson.py"),
"--project-path", config.odm_path, "bogusname"], { env });
"--project-path", config.odm_path, "bogusname"], { env, stdio: 'inherit', shell: true });
// Cleanup on done
let handleResult = (err, result) => {