Harlin Seritt <[EMAIL PROTECTED]> wrote:

> Is there a function that allows one to get the name of the same script
> running returned as a string?

Something like:

import sys
def f():
  return sys.modules['__main__'].__file__

might help.


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

Reply via email to