From 78478de36404ee5c3427f3de86e0839fcb448d37 Mon Sep 17 00:00:00 2001 From: benoitc Date: Wed, 3 Apr 2013 11:08:19 +0200 Subject: [PATCH] fix pythonpath option. fix #501 --- gunicorn/app/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gunicorn/app/base.py b/gunicorn/app/base.py index 442a3901..bb7683d2 100644 --- a/gunicorn/app/base.py +++ b/gunicorn/app/base.py @@ -123,7 +123,7 @@ class Application(object): if self.cfg.pythonpath and self.cfg.pythonpath is not None: paths = self.cfg.pythonpath.split(",") for path in paths: - pythonpath = os.path.abspath(self.cfg.pythonpath) + pythonpath = os.path.abspath(path) if pythonpath not in sys.path: sys.path.insert(0, pythonpath)