cwconfig.py
branchstable
changeset 8477 42e8755b3aba
parent 8436 150191e45ee5
child 8484 4c1efb5bde0a
--- a/cwconfig.py	Fri Jul 20 09:31:15 2012 +0200
+++ b/cwconfig.py	Fri Jul 20 09:22:51 2012 +0200
@@ -306,7 +306,10 @@
 _forced_mode = os.environ.get('CW_MODE')
 assert _forced_mode in (None, 'system', 'user')
 
-CWDEV = exists(join(CW_SOFTWARE_ROOT, '.hg'))
+# CWDEV tells whether directories such as i18n/, web/data/, etc. (ie containing
+# some other resources than python libraries) are located with the python code
+# or as a 'shared' cube
+CWDEV = exists(join(CW_SOFTWARE_ROOT, 'i18n'))
 
 try:
     _INSTALL_PREFIX = os.environ['CW_INSTALL_PREFIX']