Commit 6c20308f authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix python exec for wsgi with virtualenv

parent 4d7e56df
......@@ -57,7 +57,7 @@ class Crons:
"""
if self.base_dir is not None:
pyexec = sys.executable
match = re.match(r"^(.+)/lib/(python[^/]+)/site-packages$", pyexec)
match = re.match(r"^(.+)/lib/(python[^/]+)/site-packages/bin/python$", pyexec)
if match:
pyexec = "%s/bin/%s" % (match.group(1), match.group(2))
job = self.my_cron.new("{0}/bin/start_local_scheduler.sh {0} {1} {2} > /dev/null 2>&1 &".
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment