Unittest fails to import module

2013-06-29 Thread Martin Schöön
I know the answer to this must be trivial but I am stuck... I am starting on a not too complex Python project. Right now the project file structure contains three subdirectories and two files with Python code: code blablabla.py test blablabla_test.py doc (empty for now)

Re: Unittest fails to import module

2013-06-29 Thread Roy Smith
In article b38pvbfjlv...@mid.individual.net, Martin Schöön martin.sch...@gmail.com wrote: I know the answer to this must be trivial but I am stuck... I am starting on a not too complex Python project. Right now the project file structure contains three subdirectories and two files with

Re: Unittest fails to import module

2013-06-29 Thread Steven D'Aprano
On Sat, 29 Jun 2013 19:13:47 +, Martin Schöön wrote: $PYTHONPATH points at both the code and the test directories. When I run blablabla_test.py it fails to import blablabla.py What error message do you get? I have messed around for oven an hour and get nowhere. I have done

Re: Unittest fails to import module

2013-06-29 Thread Martin Schöön
On 2013-06-29, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 29 Jun 2013 19:13:47 +, Martin Schöön wrote: $PYTHONPATH points at both the code and the test directories. When I run blablabla_test.py it fails to import blablabla.py What error message do you get?