cwconfig.py
changeset 2449 888d698af3f9
parent 2445 6f065b366d14
child 2473 490f88fb99b6
--- a/cwconfig.py	Thu Jul 23 14:51:40 2009 +0200
+++ b/cwconfig.py	Thu Jul 23 15:15:58 2009 +0200
@@ -149,7 +149,7 @@
         CUBES_DIR = '%(APYCOT_ROOT)s/local/share/cubicweb/cubes/' % os.environ
         # create __init__ file
         file(join(CUBES_DIR, '__init__.py'), 'w').close()
-    elif exists(join(CW_SOFTWARE_ROOT, '.hg')):
+    elif exists(join(CW_SOFTWARE_ROOT, '.hg')) or os.environ.get('CW_MODE') == 'user':
         mode = 'dev'
         CUBES_DIR = abspath(normpath(join(CW_SOFTWARE_ROOT, '../cubes')))
     else: