[testlib] self.appid not yet defined stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Oct 2010 15:01:43 +0200
branchstable
changeset 6593 0fd8792c9c8a
parent 6589 47cd31fd206b
child 6594 e10468a23291
child 6605 cdc5b74d65c9
[testlib] self.appid not yet defined
devtools/__init__.py
--- a/devtools/__init__.py	Fri Oct 22 14:30:59 2010 +0200
+++ b/devtools/__init__.py	Fri Oct 22 15:01:43 2010 +0200
@@ -114,8 +114,8 @@
     def __init__(self, appid, apphome=None, log_threshold=logging.CRITICAL+10):
         # must be set before calling parent __init__
         if apphome is None:
-            if exists(self.appid):
-                apphome = abspath(self.appid)
+            if exists(appid):
+                apphome = abspath(appid)
             else: # cube test
                 apphome = abspath('..')
         self._apphome = apphome