Skip to content
This repository was archived by the owner on May 22, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions run-python3.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ async function runPython3(scriptName, debug = "") {
}

runPython3(...process.argv.slice(2)).catch(err => {
const error = err.toString();

// Python script errors are already written out via stderr so don't
// write them twice. Write out all other errors to stderr.
if (!error.startsWith("Error: Command failed")) {
console.error(error);
}
console.error(err.toString());
process.exit(1);
});
4 changes: 2 additions & 2 deletions venvtools.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ def python_run(venv_context, module, command=None, *, additional_dir=".", error_
venv_context.env_exe,
"-m", module
] + (command if command else [])
print("Executing: {}".format(" ".join(cmd_line)), file=sys.stderr)
print("Executing: {}".format(" ".join(cmd_line)))
subprocess.run(
cmd_line,
cwd=_ROOT_DIR / additional_dir,
check=True,
)
except subprocess.CalledProcessError as err:
print(err, file=sys.stderr)
print(err)
if not error_ok:
sys.exit(1)