On Tue, 2007-03-20 at 06:46 -0700, abcd wrote: > I have the following directory/file structure... > > c:\foo\utils.py > c:\foo\bar\ok.py > > In ok.py I want to do something like... > > import utils > utils.helpMeDoSomething(....) > > However, it seems that ok.py doesn't "know" about utils. Other than > manually configuring sys.path what can I do?
Why would you want to do something other than changing sys.path? Except for physically moving utils to somewhere that's already on the path, changing the path is cleanest way to handle this situation. -Carsten -- http://mail.python.org/mailman/listinfo/python-list