Closed lhchavez closed 3 years ago
Previously due to how runpy.run_path works, the commandline to scripts ended up as being main.py main.py, which confuses unittest.main().
runpy.run_path
main.py main.py
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.
sys.argv[0]
main.py
polygott is silly. i'll fix it in nix.
Previously due to how
runpy.run_path
works, the commandline to scripts ended up as beingmain.py main.py
, which confusesunittest.main()
.This change removes
sys.argv[0]
in the debugger wrapper so thatrunpy.run_path
ends up with an argv of justmain.py
.