Message171387
I wrote the following script called "bonkers.py":
--
import sys
print(sys.argv[0])
--
then ran
% python3 -m unittest bonkers
It printed
--
['python -m unittest', 'bonkers']
--
Shouldn't it say "python3", not "python"? Maybe it should use sys.executable? (Though that gets tricky if there are spaces in the filename.) |
|
Date |
User |
Action |
Args |
2012-09-27 18:41:20 | larry | set | recipients:
+ larry, michael.foord |
2012-09-27 18:41:20 | larry | set | messageid: <1348771280.27.0.553005427274.issue16064@psf.upfronthosting.co.za> |
2012-09-27 18:41:19 | larry | link | issue16064 messages |
2012-09-27 18:41:19 | larry | create | |
|