How Get Name Of Working File
victorsubervi at gmail.com
Sun Mar 22 15:52:59 CET 2009
If I am writing a script that generates HTML, how do I grab the name of the
actual file in which I am working? For example, let us say I am working in
test.py. I can have the following code:
dir = os.getcwd()
and that will give me the working dir. But what about "test.py"?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list