cwconfig.py
changeset 5028 261add0b946c
parent 5026 1f8238eaec9b
child 5048 bf8a53a11b6d
equal deleted inserted replaced
5027:d688daf0a62c 5028:261add0b946c
   737     def migration_scripts_dir(cls):
   737     def migration_scripts_dir(cls):
   738         """cubicweb migration scripts directory"""
   738         """cubicweb migration scripts directory"""
   739         if CWDEV:
   739         if CWDEV:
   740             return join(CW_SOFTWARE_ROOT, 'misc', 'migration')
   740             return join(CW_SOFTWARE_ROOT, 'misc', 'migration')
   741         mdir = join(_INSTALL_PREFIX, 'share', 'cubicweb', 'migration')
   741         mdir = join(_INSTALL_PREFIX, 'share', 'cubicweb', 'migration')
   742         if not exists(mdif):
   742         if not exists(mdir):
   743             raise ConfigurationError('migration path %s doesn\'t exist' % mdir)
   743             raise ConfigurationError('migration path %s doesn\'t exist' % mdir)
   744         return mdir
   744         return mdir
   745 
   745 
   746     @classmethod
   746     @classmethod
   747     def config_for(cls, appid, config=None):
   747     def config_for(cls, appid, config=None):