On Aug 23, 3:33 am, Arnau Sanchez <[EMAIL PROTECTED]> wrote: > Lamonte Harris escribió: > > > Say I start i click on a python file on my desktop, how could I return > > the path of the current python file thats running? > > http://docs.python.org/lib/module-sys.html
Try this: import sys import os print sys.argv[0] print os.getcwd() ----- sys.argv[0] should contain the name of the script as it was called. os.getcwd() will return the current working directory, which may also find helpful. hope this helps. Matt -- http://mail.python.org/mailman/listinfo/python-list