~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to charmworld/migrations/migrate.py

  • Committer: Aaron Bentley
  • Date: 2013-08-05 20:16:49 UTC
  • mto: (328.2.6 separate-qa)
  • mto: This revision was merged to the branch mainline in revision 335.
  • Revision ID: aaron@canonical.com-20130805201649-34zevaqku6g0i9zt
Move migrations into charmworld.

Show diffs side-by-side

added added

removed removed

Lines of Context:
389
389
            print "Updated the datastore to version: {0}".format(new_version)
390
390
 
391
391
 
 
392
def get_migration_path():
 
393
    return join(abspath(dirname(__file__)), 'versions')
 
394
 
 
395
 
392
396
def main():
393
397
    """Target for the console entry point."""
394
398
    configure_logging()
396
400
    ini = get_ini()
397
401
 
398
402
    # Add the migration path to the ini.
399
 
    migration_path = join(abspath(dirname(__file__)), 'versions')
400
 
    ini['migrations'] = migration_path
 
403
    ini['migrations'] = get_migration_path()
401
404
 
402
405
    args.func(ini, args)
403
406