Browse Source

Specific path for AppVeyor

pull/142/head
Oliverpool 9 years ago
parent
commit
1442a6a3a7
  1. 6
      test/test_compilation/test_compilation.py

6
test/test_compilation/test_compilation.py

@ -101,11 +101,11 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
if steps: if steps:
command.extend(['--steps', steps]) command.extend(['--steps', steps])
if os.name == 'nt': if os.name == 'nt' and 'APPVEYOR' in os.environ:
# On windows, we need to pass the current env as argument # On windows, we need to pass the current env as argument
current_env = os.environ.copy() current_env = os.environ.copy()
# and duplicate the current PythontPath # Force the pythonpath for AppVeyor
current_env['PYTHONPATH'] = ';'.join(sys.path[1:]) current_env['PYTHONPATH'] = 'C:\\projects\\patacrep\\.tox\\py34\\lib\\site-packages\\'
else: else:
current_env = None current_env = None

Loading…
Cancel
Save