replit / polygott

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

[python] Fix the debugger wrapper #277

Closed lhchavez closed 3 years ago

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

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 3 years ago

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