[checkers] Fix "name" lookup
authorVladimir Popescu <vladimir.popescu@logilab.fr>
Fri, 29 Nov 2013 19:08:00 +0100
changeset 1460 7a72a5b694d2
parent 1459 ffe0a265ba3e
child 1461 906875682b46
[checkers] Fix "name" lookup
_apycotlib/checkers/python.py
--- a/_apycotlib/checkers/python.py	Mon Oct 28 18:03:54 2013 +0100
+++ b/_apycotlib/checkers/python.py	Fri Nov 29 19:08:00 2013 +0100
@@ -64,7 +64,7 @@
         elif distname.startswith('cubicweb-'):
             cubespdir = join(os.environ['APYCOT_ROOT'], 'local', 'share', 'cubicweb')
             pypath = cubespdir + os.pathsep + os.environ.get('PYTHONPATH', '')
-            test.update_env(test.tconfig.name, 'PYTHONPATH', pypath, os.pathsep)
+            test.update_env(test.tconfig['name'], 'PYTHONPATH', pypath, os.pathsep)
             return join(cubespdir, 'cubes', modname)
     if modname:
         try: