sys.argv[0] doesn't always contain the full path of running script.
Joel Hedlund
joel.hedlund at gmail.com
Thu Aug 31 11:58:16 EDT 2006
> Running "python test.py" now prints /path/to/my_module.py, not
> /path/to/my_script.py.
That should have been "python my_script.py". Sorry for the slip-up.
Cheers!
/Joel
More information about the Python-list
mailing list