[Tutor] Getting Running File's Name

Bryan Carbonnell carbonnb at sympatico.ca
Tue Jan 31 03:10:31 CET 2006


Can Python return the name of the current file's name?

In other works, if I am running a Python file (MyPythonFile.py) is 
there a function that will return 'MyPythonFile.py'?

This will be used in Linux if that matters.

Thanks

-- 
Bryan Carbonnell - carbonnb at sympatico.ca
Warning: dates on calendar are closer than they appear.




More information about the Tutor mailing list