[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:
parent
1f16d01648
commit
ba4e6cfe50
@ -82,8 +82,8 @@ def locate(fnin, parameter=None):
|
|||||||
:param fnin: external program name
|
:param fnin: external program name
|
||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
exe_path = parameter['nllocbin'] + '/bin/NLLoc'
|
exe_path = os.path.join(parameter['nllocbin'], 'NLLoc')
|
||||||
if exe_path is None:
|
if not os.path.isfile(exe_path):
|
||||||
raise NLLocError('NonLinLoc executable not found; check your '
|
raise NLLocError('NonLinLoc executable not found; check your '
|
||||||
'environment variables')
|
'environment variables')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user