P
Phlip
Consider these two python modules:
aa.py
def a():
print '?'
bb.py
import aa
def bb():
aa.a()
bb()
How do I make the print line emit the filename of bb.py? (It could be
anything.)
I am currently playing with sys.exc_info, but it seems to only emit
the stack between the raise and the except. Could be pilot error, of
course. Thanks for any help!
aa.py
def a():
print '?'
bb.py
import aa
def bb():
aa.a()
bb()
How do I make the print line emit the filename of bb.py? (It could be
anything.)
I am currently playing with sys.exc_info, but it seems to only emit
the stack between the raise and the except. Could be pilot error, of
course. Thanks for any help!