#!/usr/bin/env python

import os
import sys

from migrate.versioning.shell import main

from roush.db.database import init_db
from roush.webapp import Thing

foo = Thing("roush", argv=sys.argv[1:], configfile='local.conf', debug=True)
init_db(foo.config['database_uri'])
main(url=foo.config['database_uri'], debug='True',
     repository=os.path.join(os.path.dirname(__file__), 'db/migrate_repo/'))

@@ -264,16 +264,94 @@
 _uri'%5D)%0A
+repo = os.path.join(os.path.dirname(__file__), 'roush', 'db', 'migrate_repo')%0A
 main(url
@@ -396,13 +396,8 @@
 ue',
-%0A    
  rep
@@ -408,65 +408,10 @@
 ory=
-os.path.join(os.path.dirname(__file__), 'db/migrate_
 repo
-/')
 )%0A

make manage work, fix path building