]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
fix bug in searchFreePort.py (call with no arg)
authoraguerre <aguerre>
Tue, 30 Oct 2012 09:51:49 +0000 (09:51 +0000)
committeraguerre <aguerre>
Tue, 30 Oct 2012 09:51:49 +0000 (09:51 +0000)
bin/searchFreePort.py

index 5a2510b716cf712d2fdf5d835a6c0989a34e6e6d..b3c7d97f2548c4ba0d743971ee2c1a0d509dce17 100644 (file)
@@ -22,7 +22,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-def searchFreePort(args, save_config=1):
+def searchFreePort(args={}, save_config=1):
   """
   Search free port for SALOME session.
   Returns first found free port number.
@@ -72,7 +72,7 @@ def searchFreePort(args, save_config=1):
         kwargs["with_username"]=True
       #
       from ORBConfigFile import writeORBConfigFile
-      omniorb_config, giopsize = writeORBConfigFile(home, hostname, NSPORT, kwargs)
+      writeORBConfigFile(home, hostname, NSPORT, kwargs)
 
       args['port'] = os.environ['NSPORT']
       #