[Tutor] unit testing
Alan Gauld
alan.gauld@blueyonder.co.uk
Sat May 31 17:34:02 2003
> > >(although I also don't understand why I can't
> > >import test.regrtest):
>
> Hmm... In IDLE I can do that too. Unfortunately:
>
> C:\Documents and Settings\tom\My Documents>type test.py
> import test.regrtest
>
> C:\Documents and Settings\tom\My Documents>test.py
> Traceback (most recent call last):
...
> ImportError: No module named regrtest
What about from the python prompt in a DOS window?
My guess is that you don't have the PYTHONPATH environment
variable set properly or somesuch?
Try starting python in DOS then importing sys and checking
the sys.path value to see if the right directories are included.
Just a guess,
Alan G.