X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2FORBConfigFile.py;h=f620113802ebfe37b760a1ea551bf11c1c34d3c5;hb=7a8f377e812e9a06775c6bccbfbf5b241347e13e;hp=96760c729cf4772d367794cd8e8653d53c8e26e2;hpb=509528c13bd0d6be2dccfaa01ac238e382cdfd3a;p=modules%2Fkernel.git diff --git a/bin/ORBConfigFile.py b/bin/ORBConfigFile.py old mode 100644 new mode 100755 index 96760c729..f62011380 --- a/bin/ORBConfigFile.py +++ b/bin/ORBConfigFile.py @@ -1,6 +1,6 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE # # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -63,7 +63,9 @@ def writeORBConfigFile(path, host, port, kwargs={}): orbdata.append("%sInitRef = NameService=corbaname::%s:%s"%(prefix,host,port)) orbdata.append("%sgiopMaxMsgSize = %s # 2 GBytes"%(prefix,GIOP_MaxMsgSize)) orbdata.append("%straceLevel = 0 # critical errors only"%(prefix)) - orbdata.append("%smaxGIOPConnectionPerServer = 50 # to allow containers parallel launch"%(prefix)) + orbdata.append("%smaxGIOPConnectionPerServer = 500 # to allow containers parallel launch"%(prefix)) + orbdata.append("%snativeCharCodeSet = UTF-8"%(prefix)) + orbdata.append("") with open(omniorb_config, "w") as f: @@ -75,6 +77,9 @@ def writeORBConfigFile(path, host, port, kwargs={}): if __name__ == "__main__": import sys + + if len(sys.argv) < 2: + sys.exit(-1) path = sys.argv[1] host = sys.argv[2] @@ -98,4 +103,4 @@ if __name__ == "__main__": # RETURN_VALUE_2=$(echo ${RETURN_VALUES} | cut -d' ' -f2) # ... # IMPORTANT NOTE: this print call MUST BE the first one!! - print filename, msgSize + print(filename, msgSize)