Simple way to get the full path of a running script?
bhan at andrew.cmu.edu
Sun Dec 28 01:02:39 CET 2003
Duh - the way I described seems to be simple enough:
On Sat, 27 Dec 2003, Benjamin Han wrote:
> I know I can do this by get sys.argv, tell if it's a full path, and if not,
> somehow join the relative path with getcwd(). Just wondering if there's a
> simpler way to do this. Thanks!
More information about the Python-list