cubicweb/cwconfig.py
branch3.26
changeset 12272 36032de96867
parent 12269 f607080b82a9
child 12273 9d08f89a3d85
--- a/cubicweb/cwconfig.py	Thu Feb 15 10:26:55 2018 +0100
+++ b/cubicweb/cwconfig.py	Thu Feb 15 10:55:49 2018 +0100
@@ -1011,9 +1011,8 @@
     @classmethod
     def migration_scripts_dir(cls):
         """cubicweb migration scripts directory"""
-        mdir = join(_INSTALL_PREFIX, 'share', 'cubicweb', 'migration')
-        if not exists(mdir):
-            raise ConfigurationError('migration path %s doesn\'t exist' % mdir)
+        mdir = join(dirname(__file__), 'misc', 'migration')
+        assert exists(mdir), 'migration path %s does not exist' % mdir
         return mdir
 
     @classmethod