fix pythonpath option.

fix #501
This commit is contained in:
benoitc 2013-04-03 11:08:19 +02:00
parent 22c55e095f
commit 78478de364

View File

@ -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)