tox failes when ":" is in the current directory path

Issue #203 on hold
Thomas Bechtold created an issue

This is on linux. Trying to execute tox when the path contains a ":" doesn't work:

$ pwd
/home/tom/devel/bla:blub/tox
tom@basilikum:~/devel/bla:blub/tox$ tox
GLOB sdist-make: /home/tom/devel/bla:blub/tox/setup.py
Traceback (most recent call last):
  File "/usr/bin/tox", line 9, in <module>
    load_entry_point('tox==1.7.2', 'console_scripts', 'tox-2.7')()
  File "/usr/lib/python2.7/site-packages/tox/_cmdline.py", line 26, in main
    retcode = Session(config).runcommand()
  File "/usr/lib/python2.7/site-packages/tox/_cmdline.py", line 310, in runcommand
    return self.subcommand_test()
  File "/usr/lib/python2.7/site-packages/tox/_cmdline.py", line 448, in subcommand_test
    if self.setupenv(venv):
  File "/usr/lib/python2.7/site-packages/tox/_cmdline.py", line 377, in setupenv
    envlog.set_python_info(commandpath)
  File "/usr/lib/python2.7/site-packages/tox/result.py", line 47, in set_python_info
    "import sys; "
  File "/usr/lib/python2.7/site-packages/py/_path/local.py", line 695, in sysexec
    stdout, stderr,)
py.process.cmdexec.Error: ExecutionFailed: 1  /home/tom/devel/bla:blub/tox/.tox/py27/bin/python
ImportError: No module named site

Moving the same code to another directory and executing tox works fine.

Comments (2)

  1. Log in to comment