Re: Find the context of importer

2006-06-26 Thread [EMAIL PROTECTED]
I find the answer to my own question. The inspect module have what I need. Here is the sample code: a.py import b print 'hello world from module a' b

Find the context of importer

2006-05-31 Thread [EMAIL PROTECTED]
I'm using Python in a scripting environment. The host application would pass in some objects so that the script can act on it. But there are a number of things I like to add to every script to make it a decent environment, for example, setting up exception hook to show error properly. I tried to fa