Sadless74 / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

transitfeed installed as an egg can interfere with tests #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Even though test/testexamples.py sets PYTHONPATH='.' the examples may be
run with a different older version of transitfeed.py if it is installed on
the system in an egg. You can see the problem by editing an example script
to print sys.path. As a work-around I tried running the examples as
python -c'import
sys;sys.path.insert(0,".");exec("example/feedvalidator.py")' other args but
couldn't get the quoting to work in windows. cmd.exe is not my friend.

Original issue reported on code.google.com by tom.brow...@gmail.com on 16 Sep 2007 at 2:57

GoogleCodeExporter commented 9 years ago
This doesn't reproduce in linux. Maybe a windows issue. More background at
http://peak.telecommunity.com/DevCenter/EggFormats#installation-and-path-managem
ent-issues

Original comment by tom.brow...@gmail.com on 16 Sep 2007 at 7:05

GoogleCodeExporter commented 9 years ago
I really didn't understand this problem. Things in PYTHONPATH are searched after
eggs. You can override modules from system-wide eggs by using a source egg or
modifying sys.path. See "Problem: Python search path - module order"
http://mail.python.org/pipermail/python-list/2006-October/409125.html
I've worked around whatever quoting issue I was having with cmd.exe last year 
and
will mail a fix for this issue.

Original comment by tom.brow...@gmail.com on 11 Jun 2008 at 2:32

GoogleCodeExporter commented 9 years ago
fixed in rev 780

Original comment by tom.brow...@gmail.com on 23 Jun 2008 at 9:12