server/migractions.py
branchstable
changeset 7974 77eec6d6e144
parent 7948 deb596dc343a
child 7979 8bd5031e2201
child 8047 972360b7677b
--- a/server/migractions.py	Tue Oct 18 12:22:48 2011 +0200
+++ b/server/migractions.py	Fri Oct 21 09:23:43 2011 +0200
@@ -359,6 +359,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):