os.path.dirname(sys.argv[0]) always returns nothing

happykid psyking841 at gmail.com
Mon Aug 1 13:38:07 EDT 2011


I want to use this function to get the directory path of the running
script, but it always returns empty string. Can anyone help me solve
this? Thank you.



More information about the Python-list mailing list