devtools/testlib.py
branchstable
changeset 6589 47cd31fd206b
parent 6587 0bf81efd55f9
child 6590 37b7f4df46b3
child 6720 43a38c093f6f
--- a/devtools/testlib.py	Fri Oct 22 14:27:53 2010 +0200
+++ b/devtools/testlib.py	Fri Oct 22 14:30:59 2010 +0200
@@ -199,8 +199,7 @@
         try:
             return cls.__dict__['_config']
         except KeyError:
-            home = join(dirname(sys.modules[self.__class__.__module__].__file__),
-                        cls.appid)
+            home = join(dirname(sys.modules[cls.__module__].__file__), cls.appid)
             config = cls._config = cls.configcls(cls.appid, apphome=home)
             config.mode = 'test'
             return config