]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
Bug fix in options class
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 2 Feb 2016 13:12:23 +0000 (14:12 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 2 Feb 2016 13:12:23 +0000 (14:12 +0100)
src/common/options.py

index 066eed9622de5de6d7102b11442a8175c4e1ab7a..d597cf0d2f8b2363080d943baecd97e4d9e83350 100644 (file)
@@ -113,7 +113,7 @@ class Options:
         '''
         if argList is None:
             argList = sys.argv[1:]
-
+        
         # format shortNameOption and longNameOption to make right arguments to getopt.getopt function
         shortNameOption = ""
         longNameOption = []
@@ -163,5 +163,7 @@ class Options:
                             option['result'].extend(elts)
 
             optResult.__setattr__(option['destName'], option['result'])
+            # free the option in order to be able to make a new free call of options (API case)
+            option['result'] = None
         return optResult, args