equal
deleted
inserted
replaced
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() |