cwconfig.py
branchstable
changeset 8477 42e8755b3aba
parent 8436 150191e45ee5
child 8484 4c1efb5bde0a
equal deleted inserted replaced
8476:864a92b10cb8 8477:42e8755b3aba
   304     }
   304     }
   305 
   305 
   306 _forced_mode = os.environ.get('CW_MODE')
   306 _forced_mode = os.environ.get('CW_MODE')
   307 assert _forced_mode in (None, 'system', 'user')
   307 assert _forced_mode in (None, 'system', 'user')
   308 
   308 
   309 CWDEV = exists(join(CW_SOFTWARE_ROOT, '.hg'))
   309 # CWDEV tells whether directories such as i18n/, web/data/, etc. (ie containing
       
   310 # some other resources than python libraries) are located with the python code
       
   311 # or as a 'shared' cube
       
   312 CWDEV = exists(join(CW_SOFTWARE_ROOT, 'i18n'))
   310 
   313 
   311 try:
   314 try:
   312     _INSTALL_PREFIX = os.environ['CW_INSTALL_PREFIX']
   315     _INSTALL_PREFIX = os.environ['CW_INSTALL_PREFIX']
   313 except KeyError:
   316 except KeyError:
   314     _INSTALL_PREFIX = _find_prefix()
   317     _INSTALL_PREFIX = _find_prefix()