From f9ce15cb3b95e2156c0b967ec70b69ba1d864a2f Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 28 Feb 2022 11:14:15 +0300 Subject: [PATCH] Avoid FileNotFound exception --- bin/killSalomeWithPort.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/killSalomeWithPort.py b/bin/killSalomeWithPort.py index 04e6939f6..1a7b7c5da 100755 --- a/bin/killSalomeWithPort.py +++ b/bin/killSalomeWithPort.py @@ -143,7 +143,8 @@ def appliCleanOmniOrbConfig(port): with_username=True) if os.access(last_running_config, os.F_OK): - if sys.platform == 'win32' or osp.samefile(last_running_config, omniorb_config): + if sys.platform == 'win32' or (os.access(omniorb_config, os.F_OK) and \ + osp.samefile(last_running_config, omniorb_config)): os.remove(last_running_config) if os.access(omniorb_config, os.F_OK): -- 2.39.2