From dc4ee6f6d62dd424484800d98df94e2513efdcc2 Mon Sep 17 00:00:00 2001 From: Jeremy Epstein Date: Wed, 24 Aug 2016 22:31:39 +1000 Subject: [PATCH] see if specifying /usr/bin/env flask will make travis happy --- tasks.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 5e371e4..d4c479b 100644 --- a/tasks.py +++ b/tasks.py @@ -7,6 +7,7 @@ import shutil from invoke import task, run +ENVPATH = '/usr/bin/env' HERE = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(HERE, 'cookiecutter.json'), 'r') as fp: COOKIECUTTER_SETTINGS = json.load(fp) @@ -32,7 +33,10 @@ def clean(): def _run_manage_command(command): - run('FLASK_APP="{0}.autoapp" flask {1}'.format(COOKIECUTTER_SETTINGS['app_name'], command), echo=True) + run( + 'FLASK_APP="{0}.autoapp" {1} flask {2}'.format( + COOKIECUTTER_SETTINGS['app_name'], ENVPATH, command), + echo=True) @task(pre=[clean, build])