From: aguerre Date: Tue, 30 Oct 2012 09:51:49 +0000 (+0000) Subject: fix bug in searchFreePort.py (call with no arg) X-Git-Tag: B4NGCMakeInt~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ecd367243603182b219653941bfc65b49c60c352;p=modules%2Fkernel.git fix bug in searchFreePort.py (call with no arg) --- diff --git a/bin/searchFreePort.py b/bin/searchFreePort.py index 5a2510b71..b3c7d97f2 100644 --- a/bin/searchFreePort.py +++ b/bin/searchFreePort.py @@ -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'] #