Re: [Tutor] Module search path problem

2007-02-27 Thread Bob Gailer
Christer Enfors wrote: > I have two files, in the same directory: main.py, and user.py I have the > following code in main.py: > >main.py >import user > >[snip] > >user_man = user.UserMan() >-end- > > This works without problems. > > But then I tried moving user

Re: [Tutor] Module search path problem

2007-02-27 Thread Kent Johnson
Christer Enfors wrote: > I have two files, in the same directory: main.py, and user.py > > This works without problems. > > But then I tried moving user.py to a subdirectory, and adding that > directory to Python's module search path > But now I get an error message for the last line shown abov

[Tutor] Module search path problem

2007-02-27 Thread Christer Enfors
I have two files, in the same directory: main.py, and user.py I have the following code in main.py: main.py import user [snip] user_man = user.UserMan() -end- This works without problems. But then I tried moving user.py to a subdirectory, and adding that direct