Salome HOME
PR: file omniORBconfig has now several lines, NSPORT was wrong
authorprascle <prascle>
Tue, 20 Nov 2007 09:54:35 +0000 (09:54 +0000)
committerprascle <prascle>
Tue, 20 Nov 2007 09:54:35 +0000 (09:54 +0000)
bin/NSparam.py

index 5ec527e11dedba4a18b6316e8ac8564804c7155d..652e6da662a62c2c6795b85aaf51ba7657197b1a 100755 (executable)
@@ -36,7 +36,7 @@ def getNSparams(info=""):
     my_host=""
     if os.environ.has_key("OMNIORB_CONFIG"):
         file = open(os.environ["OMNIORB_CONFIG"], "r")
-        s = file.read()
+        s = file.readline()
         while len(s):
             l = string.split(s, ":")
             if string.split(l[0], " ")[0] == "ORBInitRef" or \
@@ -48,7 +48,7 @@ def getNSparams(info=""):
                 my_host = l[len(l)-2]
                 break;
                 pass
-            s = file.read()
+            s = file.readline()
             pass
         pass
     if info=='host':