Salome HOME
Remove use of mutable as default parameter value
[modules/kernel.git] / bin / runSession.py
index 92c6b4705936450753b0c0c2375419ef5687f477..f698e323d252914a436b0cbc298a2c3cbb9d49b8 100644 (file)
@@ -34,7 +34,9 @@ class MyParser(OptionParser):
         return self.epilog
 #
 
-def configureSession(args=[]):
+def configureSession(args=None):
+  if args is None:
+    args = []
   usage = "Usage: %prog [options] [command]"
   epilog  = """\n
 If the command is not given a shell is opened; else execute the given command.