From 4233af55c6ac71fa0b16be97bf5248b14737e84b Mon Sep 17 00:00:00 2001 From: Sebastianw Wehling-Benatelli Date: Thu, 15 Sep 2016 12:11:24 +0200 Subject: [PATCH] [bugfix] which now also uses the nllocbin parameter from the input file --- pylot/core/util/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pylot/core/util/utils.py b/pylot/core/util/utils.py index ca46643b..f09efa16 100644 --- a/pylot/core/util/utils.py +++ b/pylot/core/util/utils.py @@ -9,6 +9,7 @@ import pwd import re import subprocess from obspy import UTCDateTime, read +from pylot.core.io.inputs import AutoPickParameter def _pickle_method(m): @@ -471,6 +472,8 @@ def which(program): for key in settings.allKeys(): if 'binPath' in key: os.environ['PATH'] += ':{0}'.format(settings.value(key)) + bpath = os.path.join(os.path.expanduser('~'), '.pylot', 'autoPyLoT.in') + os.environ['PATH'] += AutoPickParameter(bpath)['nllocbin'] except ImportError as e: print(e.message)