fix call to update_env: pythonpath is multi-valued, hence separator should be specified stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 28 Oct 2011 11:10:02 +0200
branchstable
changeset 789 091616c4742b
parent 788 3827c07ecb2e
child 790 13eaea0b03ef
fix call to update_env: pythonpath is multi-valued, hence separator should be specified
_apycotlib/checkers/python.py
--- a/_apycotlib/checkers/python.py	Wed Oct 26 15:41:29 2011 +0200
+++ b/_apycotlib/checkers/python.py	Fri Oct 28 11:10:02 2011 +0200
@@ -62,7 +62,8 @@
             modname = '%s.%s' % (package, modname)
         elif distname.startswith('cubicweb-'):
             cubespdir = join(os.environ['APYCOT_ROOT'], 'local', 'share', 'cubicweb')
-            test.update_env(test.tconfig.name, 'PYTHONPATH', cubespdir)
+            pypath = cubespdir + os.pathsep + os.environ.get('PYTHONPATH', '')
+            test.update_env(test.tconfig.name, 'PYTHONPATH', pypath, os.pathsep)
             return join(cubespdir, 'cubes', modname)
     if modname:
         try: