diff options
author | Sam Thursfield <sam@afuera.me.uk> | 2016-04-10 18:28:11 +0100 |
---|---|---|
committer | Sam Thursfield <sam@afuera.me.uk> | 2016-04-10 18:34:54 +0100 |
commit | 68f6f517b97e94ba44909bb97d9e634f8e21b46b (patch) | |
tree | 1cba99e87ada89c8bc1767d3b24b14b46fd7b02a | |
parent | 401aad76b852d22fefc896718e6520a52f69a64d (diff) | |
download | spec-68f6f517b97e94ba44909bb97d9e634f8e21b46b.tar.gz |
migrations: Fix version 7 looking for its data file
This broke when I moved the migrations out of definitions.git, and I should
have just implemented it like this in the first place.
Change-Id: I0096f4410d6475e7f57fd2f04fbfb0e61062b435
-rwxr-xr-x | migrations/007-defaults-in-definitions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/migrations/007-defaults-in-definitions.py b/migrations/007-defaults-in-definitions.py index 489baf9..34c8947 100755 --- a/migrations/007-defaults-in-definitions.py +++ b/migrations/007-defaults-in-definitions.py @@ -33,7 +33,7 @@ import migrations TO_VERSION = 7 - +MIGRATIONS_DIR = os.path.dirname(os.path.realpath(__file__)) try: if migrations.check_definitions_version(TO_VERSION - 1): @@ -43,7 +43,7 @@ try: valid = False else: shutil.copy( - 'migrations/007-initial-defaults', + os.path.join(MIGRATIONS_DIR, '007-initial-defaults'), 'DEFAULTS') valid = True |