# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
if args.has_key('ns_port_log_file'):
omniorbUserPath = os.getenv("OMNIORB_USER_PATH")
file_name = os.path.join(omniorbUserPath, args["ns_port_log_file"])
- print file_name, os.environ['NSPORT']
with open(file_name, "w") as f:
f.write(os.environ['NSPORT'])
#
Search free port for SALOME session.
Returns first found free port number.
"""
-
try:
import PortManager # mandatory
from multiprocessing import Process, Queue
os.environ['OMNIORB_CONFIG'] = info[0]
os.environ['NSPORT'] = info[1]
+ args['port'] = os.environ['NSPORT']
os.environ['NSHOST'] = info[2]
__savePortToFile(args)