help - Module needs access to another module
Carsten Haese
carsten at uniqsys.com
Tue Mar 20 10:18:01 EDT 2007
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
More information about the Python-list
mailing list