> > How can a module determine the path of the file that defines it? > > (Note that this is, in the general case, different from sys.argv[0].) > > __file__
Also: import inspect print inspect.getsourcefile(lambda:None) -- http://mail.python.org/mailman/listinfo/python-list