Problem in designing a global directory in python

Tian wangtianthu at gmail.com
Tue Mar 29 13:51:19 EST 2005


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?




More information about the Python-list mailing list