~adeuring/charmworld/use-charmtools-tarball

« back to all changes in this revision

Viewing changes to charmworld/migrations/migrate.py

  • Committer: Tarmac
  • Author(s): Aaron Bentley
  • Date: 2013-08-06 14:09:18 UTC
  • mfrom: (328.1.7 restore-questions)
  • Revision ID: tarmac-20130806140918-d8nkgw3oynufkb7p
[r=bac][bug=][author=abentley] Restore QA questions to migrations.

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