mirror of
https://github.com/OPM/ResInsight.git
synced 2026-08-18 09:05:11 -05:00
#12958 Check if executable exists before trying to launch ResInsight
This commit is contained in:
@@ -153,6 +153,13 @@ class Instance:
|
||||
else:
|
||||
resinsight_executable = resinsight_executable_from_env
|
||||
|
||||
# Check if executable file exists
|
||||
if not os.path.isfile(resinsight_executable):
|
||||
print(
|
||||
f"ERROR: ResInsight executable not found at path: {resinsight_executable}"
|
||||
)
|
||||
return None
|
||||
|
||||
print("Trying to launch", resinsight_executable)
|
||||
with tempfile.TemporaryDirectory() as tmp_dir_path:
|
||||
port_number_file = tmp_dir_path + "/portnumber.txt"
|
||||
|
||||
Reference in New Issue
Block a user