fix bad arguments given to update_env in 785:7d8a3645e20d stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 26 Oct 2011 15:00:13 +0200
branchstable
changeset 786 ab57104e5667
parent 785 7d8a3645e20d
child 787 0b98935f0d2a
fix bad arguments given to update_env in 785:7d8a3645e20d
_apycotlib/checkers/python.py
--- a/_apycotlib/checkers/python.py	Tue Oct 25 09:42:20 2011 +0200
+++ b/_apycotlib/checkers/python.py	Wed Oct 26 15:00:13 2011 +0200
@@ -62,7 +62,7 @@
             modname = '%s.%s' % (package, modname)
         elif distname.startswith('cubicweb-'):
             cubespdir = join(os.environ['APYCOT_ROOT'], 'local', 'share', 'cubicweb')
-            test.update_env('PYTHONPATH', cubespdir)
+            test.update_env(atest.tconfig.name, 'PYTHONPATH', cubespdir)
             return join(cubespdir, 'cubes', modname)
     if modname:
         try: