cwconfig.py
changeset 1039 95d3bfae7a9e
parent 1023 278f997aa257
child 1170 a7c089405185
equal deleted inserted replaced
1030:2ead2111cfab 1039:95d3bfae7a9e
   223         """return the shared data directory (i.e. directory where standard
   223         """return the shared data directory (i.e. directory where standard
   224         library views and data may be found)
   224         library views and data may be found)
   225         """
   225         """
   226         if cls.mode in ('dev', 'test') and not os.environ.get('APYCOT_ROOT'):
   226         if cls.mode in ('dev', 'test') and not os.environ.get('APYCOT_ROOT'):
   227             return join(CW_SOFTWARE_ROOT, 'web')
   227             return join(CW_SOFTWARE_ROOT, 'web')
   228         return self.cube_dir('shared')
   228         return cls.cube_dir('shared')
   229         
   229         
   230     @classmethod
   230     @classmethod
   231     def i18n_lib_dir(cls):
   231     def i18n_lib_dir(cls):
   232         """return application's i18n directory"""
   232         """return application's i18n directory"""
   233         if cls.mode in ('dev', 'test') and not os.environ.get('APYCOT_ROOT'):
   233         if cls.mode in ('dev', 'test') and not os.environ.get('APYCOT_ROOT'):