aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-23 08:41:12 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-04-23 08:41:12 +0200
commit6ee91b3713a29df2dc6fc7d4f417ae4dbefa4972 (patch)
tree5b65b0435f9f544c0ff4600a68098193985da4c6 /pyaggr3g470r
parentUpdated translations. (diff)
downloadnewspipe-6ee91b3713a29df2dc6fc7d4f417ae4dbefa4972.tar.gz
newspipe-6ee91b3713a29df2dc6fc7d4f417ae4dbefa4972.tar.bz2
newspipe-6ee91b3713a29df2dc6fc7d4f417ae4dbefa4972.zip
Automatically use the good Python executable for the classic crawler.
Diffstat (limited to 'pyaggr3g470r')
-rwxr-xr-xpyaggr3g470r/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/utils.py b/pyaggr3g470r/utils.py
index 628703d2..3d8bb483 100755
--- a/pyaggr3g470r/utils.py
+++ b/pyaggr3g470r/utils.py
@@ -35,6 +35,7 @@ __license__ = "AGPLv3"
#
import re
+import sys
import glob
import opml
import json
@@ -88,7 +89,7 @@ def fetch(id, feed_id=None):
Fetch the feeds in a new processus.
The "asyncio" crawler is launched with the manager.
"""
- cmd = [conf.PYTHON, conf.basedir+'/manager.py', 'fetch_asyncio', str(id),
+ cmd = [sys.executable, conf.BASE_DIR+'/manager.py', 'fetch_asyncio', str(id),
str(feed_id)]
p = subprocess.Popen(cmd, stdout=subprocess.PIPE)
bgstack15