server/migractions.py
changeset 7979 8bd5031e2201
parent 7953 a37531c8a4a6
parent 7974 77eec6d6e144
child 7990 a673d1d9a738
--- a/server/migractions.py	Thu Oct 20 16:03:51 2011 +0200
+++ b/server/migractions.py	Fri Oct 21 09:24:29 2011 +0200
@@ -367,6 +367,8 @@
         if cube:
             cubepath = self.config.cube_dir(cube)
             apc = osp.join(cubepath, 'migration', '%s.py' % event)
+        elif kwargs.pop('apphome', False):
+            apc = osp.join(self.config.apphome, 'migration', '%s.py' % event)
         else:
             apc = osp.join(self.config.migration_scripts_dir(), '%s.py' % event)
         if osp.exists(apc):