From 93f90703964618b9ed0a398f4f89379740da2194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Mon, 19 Sep 2016 13:22:46 +0200 Subject: [PATCH] Fixed bug: path seperator was not taken inot account. --- pylot/core/util/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index b2ba044d..ea5896fe 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -4,6 +4,7 @@ import hashlib import numpy as np from scipy.interpolate import splrep, splev +import pdb import os import pwd import re @@ -474,7 +475,8 @@ def which(program): os.environ['PATH'] += ':{0}'.format(settings.value(key)) bpath = os.path.join(os.path.expanduser('~'), '.pylot', 'autoPyLoT.in') if os.path.exists(bpath): - os.environ['PATH'] += AutoPickParameter(bpath).get('nllocbin') + nllocpath = ":" + AutoPickParameter(bpath).get('nllocbin') + os.environ['PATH'] += nllocpath except ImportError as e: print(e.message)