> But is there a way / a variable that contains the current file in
> memory ?
yes: import __main__

you can do:

import inspect
import __main__
print inspect.getsource(__main__)

or simply:

print open(__file__).read()


nsz

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to