help - Module needs access to another module

Diez B. Roggisch deets at nospam.web.de
Tue Mar 20 09:58:01 EDT 2007


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?

After a bunch of questions of that kind, I suggest you take a step back, and
read this:

http://docs.python.org/tut/node8.html

Diez



More information about the Python-list mailing list