From 1442a6a3a71a6e5b2231457d0dea6042a212450e Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 29 Oct 2015 21:31:16 +0100 Subject: [PATCH] Specific path for AppVeyor --- test/test_compilation/test_compilation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index 0761d784..7d9bb005 100644 --- a/test/test_compilation/test_compilation.py +++ b/test/test_compilation/test_compilation.py @@ -101,11 +101,11 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): if 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 current_env = os.environ.copy() - # and duplicate the current PythontPath - current_env['PYTHONPATH'] = ';'.join(sys.path[1:]) + # Force the pythonpath for AppVeyor + current_env['PYTHONPATH'] = 'C:\\projects\\patacrep\\.tox\\py34\\lib\\site-packages\\' else: current_env = None