cwconfig.py
changeset 4326 b930d140d321
parent 4325 16642cc7d497
child 4476 14429e8c7590
equal deleted inserted replaced
4325:16642cc7d497 4326:b930d140d321
   879             else:
   879             else:
   880                 sitefile = join(path, 'site_erudi.py')
   880                 sitefile = join(path, 'site_erudi.py')
   881                 if exists(sitefile) and not sitefile in self._site_loaded:
   881                 if exists(sitefile) and not sitefile in self._site_loaded:
   882                     self._load_site_cubicweb(sitefile)
   882                     self._load_site_cubicweb(sitefile)
   883                     self._site_loaded.add(sitefile)
   883                     self._site_loaded.add(sitefile)
   884                     self.warning('site_erudi.py is deprecated, should be renamed to site_cubicweb.py')
   884                     self.warning('[3.5] site_erudi.py is deprecated, should be renamed to site_cubicweb.py')
   885 
   885 
   886     def _load_site_cubicweb(self, sitefile):
   886     def _load_site_cubicweb(self, sitefile):
   887         # XXX extrapath argument to load_module_from_file only in lgc > 0.46
   887         # XXX extrapath argument to load_module_from_file only in lgc > 0.46
   888         from logilab.common.modutils import load_module_from_modpath, modpath_from_file
   888         from logilab.common.modutils import load_module_from_modpath, modpath_from_file
   889         def load_module_from_file(filepath, path=None, use_sys=1, extrapath=None):
   889         def load_module_from_file(filepath, path=None, use_sys=1, extrapath=None):