From 3bd2148abdf9697d2961cf42dd36427e2b8c3032 Mon Sep 17 00:00:00 2001 From: Antoine Legrand <2t.antoine@gmail.com> Date: Thu, 8 Jun 2017 20:50:42 +0200 Subject: [PATCH] gunicorn-conf: add quay directory to syspath --- conf/gunicorn_local.py | 6 +++++- conf/gunicorn_registry.py | 6 +++++- conf/gunicorn_secscan.py | 6 +++++- conf/gunicorn_verbs.py | 6 +++++- conf/gunicorn_web.py | 6 +++++- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/conf/gunicorn_local.py b/conf/gunicorn_local.py index ced24647a..bf312a5ef 100644 --- a/conf/gunicorn_local.py +++ b/conf/gunicorn_local.py @@ -1,5 +1,9 @@ -from Crypto import Random +import sys +import os +sys.path.append(os.path.join(os.path.dirname(__file__), "../")) + from util.log import logfile_path +from Crypto import Random logconfig = logfile_path(debug=True) diff --git a/conf/gunicorn_registry.py b/conf/gunicorn_registry.py index 8ee035963..87e3106a2 100644 --- a/conf/gunicorn_registry.py +++ b/conf/gunicorn_registry.py @@ -1,5 +1,9 @@ -from Crypto import Random +import sys +import os +sys.path.append(os.path.join(os.path.dirname(__file__), "../")) + from util.log import logfile_path +from Crypto import Random logconfig = logfile_path(debug=False) diff --git a/conf/gunicorn_secscan.py b/conf/gunicorn_secscan.py index 2c5cb33fd..69ab0fd1f 100644 --- a/conf/gunicorn_secscan.py +++ b/conf/gunicorn_secscan.py @@ -1,5 +1,9 @@ -from Crypto import Random +import sys +import os +sys.path.append(os.path.join(os.path.dirname(__file__), "../")) + from util.log import logfile_path +from Crypto import Random logconfig = logfile_path(debug=False) diff --git a/conf/gunicorn_verbs.py b/conf/gunicorn_verbs.py index d271d94f0..57e3748b7 100644 --- a/conf/gunicorn_verbs.py +++ b/conf/gunicorn_verbs.py @@ -1,5 +1,9 @@ -from Crypto import Random +import sys +import os +sys.path.append(os.path.join(os.path.dirname(__file__), "../")) + from util.log import logfile_path +from Crypto import Random logconfig = logfile_path(debug=False) diff --git a/conf/gunicorn_web.py b/conf/gunicorn_web.py index 85b4c0fcf..411ae1190 100644 --- a/conf/gunicorn_web.py +++ b/conf/gunicorn_web.py @@ -1,5 +1,9 @@ -from Crypto import Random +import sys +import os +sys.path.append(os.path.join(os.path.dirname(__file__), "../")) + from util.log import logfile_path +from Crypto import Random logconfig = logfile_path(debug=False)