[Tutor] Script Name/Path Information
Nathan Farrar
nathan.farrar at gmail.com
Sat Jul 5 19:07:18 CEST 2008
I'm new to python and wondering if there is a way to reference
information about the script that is running. For example, if I was
running a script named "FileInfo.py" from the directory
"/home/username", I'm looking for attributes such that something similar
to:
print self.name
print self.path
would output:
FileInfo.py
/home/username
... Thanks!
Nathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20080705/997d9715/attachment.htm>
More information about the Tutor
mailing list