sys.argv[0] doesn't always contain the full path of running script.
Ivan Zuzak
izuzak at gmail.com
Thu Aug 31 17:03:06 EDT 2006
Joel Hedlund wrote:
> Yes indeed! But the path to the module will not be the same as the path to
> the script if you are currently in an imported module. Consider this:
I thought that was the point - to get the full path of the running
script? I see you use the terms "script" and "module" in different
contexts, while I use them as: script = module = file. I can't say
which is right, though :).
Cheers,
ivan
More information about the Python-list
mailing list