path of execfile'd script

Harald Kirsch kirschh at lionbioscience.com
Tue Oct 10 05:03:29 EDT 2000


I use execfile() to run a piece of python code. Is it is possible
within this code to get hold of the file in which it is?

(I use execfile() instead of import because the file to be executed is
given as a command line argument to a python script.)

  Harald Kirsch
-- 
----------------+------------------------------------------------------
Harald Kirsch   | kirschh at lionbioscience.com | "How old is the epsilon?"
LION Bioscience | +49 6221 4038 172          |        -- Paul Erdös




More information about the Python-list mailing list