[Tutor] Where should unit test files go in a project directory structure and some related questions?
Laura Creighton
lac at openend.se
Sun Aug 16 22:10:15 CEST 2015
In a message of Sun, 16 Aug 2015 12:46:59 -0700, Alex Kleider writes:
>On 2015-08-16 10:45, Alan Gauld wrote:
>
>> Thee are several options.
>> 1) create links from, main to the test files needed
>> 2) alter sys.path so imports can see the test folder
>> 3) alter the PYTHONPATH environment var
>
>> I suspect in this case the easiest solution is a link
>
>Thanks Alan.
>
>Creating a link is familiar to me but your answer brings up
>another question:
>Where/how is the best place/way to set PYTHONPATH?
>I've never been clear to me if it's part of the shell (bash)
>environment or part of the python interpreter's environment.
>Alex
bash. If you share your computer with somebody they each want
their own.
Laura
More information about the Tutor
mailing list