Salome HOME
updated copyright message
[modules/kernel.git] / bin / salomeContextUtils.py.in
index b5fcd63adcbd1fe0d186b013269f2b21f1448814..fee74ff042e5eb5999d50c619463afb27154e2e7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013-2022  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2013-2023  CEA, EDF, OPEN CASCADE
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -261,9 +261,10 @@ def getScriptsAndArgs(args=None, searchPathList=None):
                 ispython = True
                 break
               pass
-            fn.close()
           except Exception:
             pass
+          finally:
+            fn.close()
           if not ispython and script_extension == ".py":
             currentKey = "@PYTHONBIN@ "+currentScript
           else: