On 04/07/2010 22:05, Tobiah wrote:
foo.py:

import bar
bar.show_importer()

output:

'foo' or 'foo.py' or 'path/to/foo' etc.

Possible?

Thanks,

Tobiah

>>> import re
>>> re.__file__
'C:\\Python26\\lib\\re.pyc'

HTH.

Mark Lawrence.

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

Reply via email to