[Pytest-commit] Issue #146: setting PYTHONPATH causes tox to crash (hpk42/tox)
Daniel Neuhäuser
issues-reply at bitbucket.org
Sat Jan 18 22:01:29 CET 2014
New issue 146: setting PYTHONPATH causes tox to crash
https://bitbucket.org/hpk42/tox/issue/146/setting-pythonpath-causes-tox-to-crash
Daniel Neuhäuser:
When I try to set the PYTHONPATH environment variable, tox fails with this traceback:
```
$ PYTHONPATH=../pypy tox
GLOB sdist-make: /Users/DasIch/Development/rply/setup.py
Traceback (most recent call last):
File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/bin/tox", line 9, in <module>
load_entry_point('tox==1.6.1', 'console_scripts', 'tox')()
File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/_cmdline.py", line 26, in main
retcode = Session(config).runcommand()
File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/_cmdline.py", line 301, in runcommand
return self.subcommand_test()
File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/_cmdline.py", line 433, in subcommand_test
if self.setupenv(venv):
File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/_cmdline.py", line 367, in setupenv
commandpath = venv.getcommandpath("python")
File "/Users/DasIch/Development/dotfiles/virtualenv/envs/rply/lib/python2.7/site-packages/tox/_venv.py", line 85, in getcommandpath
p = py.path.local.sysfind(name, paths=[self.envconfig.envbindir])
TypeError: sysfind() got an unexpected keyword argument 'paths'
```
What I would like tox to do is execute the commands in the testenv with PYTHONPATH as I've set it.
More information about the pytest-commit
mailing list