Salome HOME
projects
/
modules
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c67cfb5
)
Always close opened file
author
Gilles DAVID
<gilles-g.david@edf.fr>
Tue, 20 Sep 2022 12:43:51 +0000
(14:43 +0200)
committer
Gilles DAVID
<gilles-g.david@edf.fr>
Tue, 20 Sep 2022 12:45:12 +0000
(14:45 +0200)
bin/salomeContextUtils.py.in
patch
|
blob
|
history
diff --git
a/bin/salomeContextUtils.py.in
b/bin/salomeContextUtils.py.in
index b5fcd63adcbd1fe0d186b013269f2b21f1448814..f7f0d8310932df832fc8765922c1e7ba607ae8ae 100644
(file)
--- a/
bin/salomeContextUtils.py.in
+++ b/
bin/salomeContextUtils.py.in
@@
-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: