I have tried using "sysctx=None" instead of "global sysctx", but it doesn't work either. It seems my initialization work in the previous calling of init() has no persistent effect when "utils" is imported using "from myproj.utils import getContext".
What's weird, when a module is in the same directory as utils.py, where I can simply use "utils" for importing, there is no such problem. Any other suggestions? -- http://mail.python.org/mailman/listinfo/python-list