how to know the importing file name from an imported file?

Visco Shaun visco31 at
Fri Apr 17 13:17:00 CEST 2009


Is there a way to know the name of the script(say A), which is importing
a module(say B), from B?
ie in above situation i should be able to get name 'A' through some way
in B, when A contains an 'import B' statement.
Thanks & Regards

More information about the Python-list mailing list