From f4d9962cdc7580e8eb33f41dab1a2c91aaab02a7 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Mon, 6 Apr 2020 23:52:05 +0200 Subject: added the FLASK_APP env variable in subprocess.Popen --- newspipe/lib/misc_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/newspipe/lib/misc_utils.py b/newspipe/lib/misc_utils.py index 3bd9c6a5..d1e960ae 100755 --- a/newspipe/lib/misc_utils.py +++ b/newspipe/lib/misc_utils.py @@ -100,6 +100,8 @@ def fetch(id, feed_id=None): Fetch the feeds in a new processus. The default crawler ("asyncio") is launched with the manager. """ + env = os.environ.copy() + env['FLASK_APP'] = 'runserver.py' cmd = [ sys.exec_prefix + "/bin/flask", "fetch_asyncio", -- cgit