aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2020-04-06 23:52:05 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2020-04-06 23:52:05 +0200
commitf4d9962cdc7580e8eb33f41dab1a2c91aaab02a7 (patch)
tree82fa8a21af284bff51c48a466e95479007419a2a
parentFetch the feeds in a new processus by taking into account the current virtual... (diff)
downloadnewspipe-f4d9962cdc7580e8eb33f41dab1a2c91aaab02a7.tar.gz
newspipe-f4d9962cdc7580e8eb33f41dab1a2c91aaab02a7.tar.bz2
newspipe-f4d9962cdc7580e8eb33f41dab1a2c91aaab02a7.zip
added the FLASK_APP env variable in subprocess.Popen
-rwxr-xr-xnewspipe/lib/misc_utils.py2
1 files changed, 2 insertions, 0 deletions
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",
bgstack15