mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
22c55e095f
commit
78478de364
@ -123,7 +123,7 @@ class Application(object):
|
|||||||
if self.cfg.pythonpath and self.cfg.pythonpath is not None:
|
if self.cfg.pythonpath and self.cfg.pythonpath is not None:
|
||||||
paths = self.cfg.pythonpath.split(",")
|
paths = self.cfg.pythonpath.split(",")
|
||||||
for path in paths:
|
for path in paths:
|
||||||
pythonpath = os.path.abspath(self.cfg.pythonpath)
|
pythonpath = os.path.abspath(path)
|
||||||
if pythonpath not in sys.path:
|
if pythonpath not in sys.path:
|
||||||
sys.path.insert(0, pythonpath)
|
sys.path.insert(0, pythonpath)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user