]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Avoid FileNotFound exception
authorvsr <vsr@opencascade.com>
Mon, 28 Feb 2022 08:14:15 +0000 (11:14 +0300)
committervsr <vsr@opencascade.com>
Mon, 28 Feb 2022 08:14:15 +0000 (11:14 +0300)
bin/killSalomeWithPort.py

index 04e6939f6702a96ef1826388d28fcc9e82b62a4a..1a7b7c5dadfd304861f54610f37e62330b4cb688 100755 (executable)
@@ -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):