diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-04-06 23:37:37 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-04-06 23:37:37 +0200 |
commit | bd1e5f3a9dd093110447adfaedb12f93ba3c8b5b (patch) | |
tree | 11ad7bfd3f62ba3e2b99e10fa67109b12731f4be /newspipe | |
parent | Removed useless import. (diff) | |
download | newspipe-bd1e5f3a9dd093110447adfaedb12f93ba3c8b5b.tar.gz newspipe-bd1e5f3a9dd093110447adfaedb12f93ba3c8b5b.tar.bz2 newspipe-bd1e5f3a9dd093110447adfaedb12f93ba3c8b5b.zip |
Fetch the feeds in a new processus by taking into account the current virtual environment.
Diffstat (limited to 'newspipe')
-rwxr-xr-x | newspipe/lib/misc_utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/newspipe/lib/misc_utils.py b/newspipe/lib/misc_utils.py index 8eb03816..3bd9c6a5 100755 --- a/newspipe/lib/misc_utils.py +++ b/newspipe/lib/misc_utils.py @@ -101,8 +101,7 @@ def fetch(id, feed_id=None): The default crawler ("asyncio") is launched with the manager. """ cmd = [ - "poetry", "run", - "flask", + sys.exec_prefix + "/bin/flask", "fetch_asyncio", "--user-id", str(id), ] |