Salome HOME
fix bug of internationalization
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 9 Mar 2016 11:17:48 +0000 (12:17 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 9 Mar 2016 11:17:48 +0000 (12:17 +0100)
salomeTools.py

index 2ce0d73d896eb0b3010fc20d8d87808ea4a8f574..eba93ea9832af5e1a8266e0264fbb3c5f7b48c4e 100755 (executable)
@@ -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