Fill in migrations for cli.Exit and BoolFlag with Value

This commit is contained in:
Dan Buch
2016-05-30 15:15:49 -04:00
parent 1d13fa8140
commit 659e1c1e0b
2 changed files with 47 additions and 2 deletions

View File

@@ -88,7 +88,8 @@ def _migrations():
_run(['python', migration_script, '-w', gofile])
_run('go build -o tmp.out {}'.format(gofile).split())
finally:
shutil.rmtree(tmpdir, ignore_errors=True)
if os.environ.get('NOCLEAN', '') == '':
shutil.rmtree(tmpdir, ignore_errors=True)
def _run(command):