cwconfig.py
changeset 9682 fcb672023553
parent 9669 283503f58400
child 9792 1349398d744e
--- a/cwconfig.py	Thu Apr 10 15:28:21 2014 +0200
+++ b/cwconfig.py	Thu Apr 10 17:31:50 2014 +0200
@@ -991,7 +991,7 @@
         super(CubicWebConfiguration, self).adjust_sys_path()
         # adding apphome to python path is not usually necessary in production
         # environments, but necessary for tests
-        if self.apphome and not self.apphome in sys.path:
+        if self.apphome and self.apphome not in sys.path:
             sys.path.insert(0, self.apphome)
 
     @property