From 6ee91b3713a29df2dc6fc7d4f417ae4dbefa4972 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 23 Apr 2015 08:41:12 +0200 Subject: Automatically use the good Python executable for the classic crawler. --- pyaggr3g470r/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyaggr3g470r') 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) -- cgit