Salome HOME
projects
/
tools
/
sat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3014b77
)
fix bug of internationalization
author
Serge Rehbinder
<serge.rehbinder@cea.fr>
Wed, 9 Mar 2016 11:17:48 +0000
(12:17 +0100)
committer
Serge Rehbinder
<serge.rehbinder@cea.fr>
Wed, 9 Mar 2016 11:17:48 +0000
(12:17 +0100)
salomeTools.py
patch
|
blob
|
history
diff --git
a/salomeTools.py
b/salomeTools.py
index 2ce0d73d896eb0b3010fc20d8d87808ea4a8f574..eba93ea9832af5e1a8266e0264fbb3c5f7b48c4e 100755
(executable)
--- a/
salomeTools.py
+++ b/
salomeTools.py
@@
-145,8
+145,12
@@
class Sat(object):
:param args str: The directory path containing the commands
'''
+ # Make sure the internationalization is available
+ gettext.install('salomeTools', os.path.join(satdir, 'src', 'i18n'))
+
argv = args.split(" ")
- while "" in argv: argv.remove("")
+ if argv != ['']:
+ while "" in argv: argv.remove("")
# if it is provided by the command line, get the application
appliToLoad = None