get full location of currently executing python script
March 9th, 2009 by Lawrence David
to get the full pathname to a script that python is executing, use the handy little one-liner:
>> os.path.abspath(sys.argv[0])
March 9th, 2009 by Lawrence David
to get the full pathname to a script that python is executing, use the handy little one-liner:
>> os.path.abspath(sys.argv[0])
Thanks, thats exactly what i have been looking for.