Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

[python] Fix the debugger wrapper #277

Closed
wants to merge 1 commit into from

Conversation

lhchavez
Copy link
Contributor

Previously due to how runpy.run_path works, the commandline to scripts
ended up as being main.py main.py, which confuses unittest.main().

This change removes sys.argv[0] in the debugger wrapper so that
runpy.run_path ends up with an argv of just main.py.

Previously due to how `runpy.run_path` works, the commandline to scripts
ended up as being `main.py main.py`, which confuses `unittest.main()`.

This change removes `sys.argv[0]` in the debugger wrapper so that
`runpy.run_path` ends up with an argv of just `main.py`.
@lhchavez lhchavez enabled auto-merge (squash) October 10, 2021 22:24
@lhchavez
Copy link
Contributor Author

polygott is silly. i'll fix it in nix.

@lhchavez lhchavez closed this Oct 11, 2021
auto-merge was automatically disabled October 11, 2021 02:47

Pull request was closed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants