[bugfix] bin directory + /bin creates "/bin/bin". Also it is not taken care of os compatibility and also compatibility with existing code (line 86ff was useless after recent change in line 85)

This commit is contained in:
Marcel Paffrath 2023-08-23 14:48:21 +02:00
parent 1f16d01648
commit ba4e6cfe50

View File

@ -82,8 +82,8 @@ def locate(fnin, parameter=None):
:param fnin: external program name
:return: None
"""
exe_path = parameter['nllocbin'] + '/bin/NLLoc'
if exe_path is None:
exe_path = os.path.join(parameter['nllocbin'], 'NLLoc')
if not os.path.isfile(exe_path):
raise NLLocError('NonLinLoc executable not found; check your '
'environment variables')