[Pyunit-interest] Re: PyUnit / jython
Brought to you by:
purcell
From: Kevin J. B. <pyu...@sa...> - 2003-01-22 21:41:04
|
> > >From: Sebastien BLANC <Seb...@al...> >yet when I now have the py test file in another directory I then get the >following error: > >Traceback (innermost last): > File "unittest.py", line 712, in ? > File "unittest.py", line 663, in __init__ > File "unittest.py", line 691, in parseArgs > File "unittest.py", line 695, in createTests > File "unittest.py", line 458, in loadTestsFromNames > File "unittest.py", line 425, in loadTestsFromName >ImportError: no module named TestGemClient > >as if jython could not find my py file, though it is in the CP classpath >variable (no doubt on that). > > Jython finds .py files through sys.path. You can either add the directory to sys.path directly in your python code, or modify your jython registry to include the directory. kb |