[config] Set CWDEV, aka dev mode, according to presence of the i18n directory, not .hg stable
authorJulien Cristau <julien.cristau@logilab.fr>
Fri, 20 Jul 2012 09:22:51 +0200
branchstable
changeset 8477 42e8755b3aba
parent 8476 864a92b10cb8
child 8478 e099ebc65e61
[config] Set CWDEV, aka dev mode, according to presence of the i18n directory, not .hg
cwconfig.py
--- 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']