Simple way to get the full path of a running script?

Benjamin Han bhan at andrew.cmu.edu
Sat Dec 27 18:54:51 EST 2003


I know I can do this by get sys.argv[0], 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 mailing list