[apycotlib] fix unwanted path replacement
authorVladimir Popescu <vladimir.popescu@logilab.fr>
Wed, 26 Feb 2014 18:15:33 +0100
changeset 1466 f3ff429b88ac
parent 1465 737c7090f55e
child 1467 d332fd51803d
[apycotlib] fix unwanted path replacement This could be a previous copy-paste mistake. The path can be predefined and should only be forced to test.project_path() if it is initially at None (else, dependencies install/config fails).
_apycotlib/preprocessors/distutils.py
--- a/_apycotlib/preprocessors/distutils.py	Fri Apr 18 18:12:56 2014 +0200
+++ b/_apycotlib/preprocessors/distutils.py	Wed Feb 26 18:15:33 2014 +0100
@@ -98,7 +98,6 @@
         if path is None:
             path = test.project_path()
         if not DistutilsProcessor._python_path_set:
-            path = test.project_path()
             py_lib_dir = join(test.tmpdir, 'local', 'lib', 'python')
             # setuptools need this directory to exists
             if not exists(py_lib_dir):