Skip to content

Commit

Permalink
script path
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel committed Jun 27, 2016
1 parent c130b1f commit abbdd76
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gengine/maintenance/scripts/initializedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ def main(argv=sys.argv):
'engine' : engine,
'schema' : 'public'
})
alembic_cfg.set_main_option("script_location", "gengine/app/alembic")
script_location = os.path.join(
os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
'app/alembic'
)
alembic_cfg.set_main_option("script_location", script_location)

do_upgrade = options.get("upgrade",False)
if not do_upgrade:
Expand Down

0 comments on commit abbdd76

Please sign in to comment.