replit / polygott

Base Docker image for the Repl.it evaluation server
https://replit.com
MIT License
393 stars 104 forks source link

[python] Fix the debugger wrapper #277

Closed lhchavez closed 2 years ago

lhchavez commented 2 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().

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 commented 2 years ago

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