On 04.01.2016 18:59, Olivier Duchateau wrote:
>> > I wonder, if this has something to do with my setting PYTHONPATH -- I
>> > need the not-yet-installed mediagoblin packages to be found in ${WRKSRC}
>> > by the tests. What is the proper way of to do this?
> You can add module (and submodules) with sys module.
>
> For example in mediagoblin/tests/tools.py before line beginning by 'from
> mediagoblin ...'
>
> import sys
>
> # Full path of mediagoblin
> sys.append('/spare/usr/ports/www/py-mediagoblin/work/mediagoblin-0.8.1/mediagoblin')
Ouch! I was hoping, I could set an environment variable and be done with
it -- something like PATH or LD_LIBRARY_PATH or TCLPATH...
-mi
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-python
To unsubscribe, send any mail to "[email protected]"