From: vsr Date: Mon, 28 Feb 2022 08:14:15 +0000 (+0300) Subject: Avoid FileNotFound exception X-Git-Tag: V9_9_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f9ce15cb3b95e2156c0b967ec70b69ba1d864a2f;p=modules%2Fkernel.git Avoid FileNotFound exception --- 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):