+ with open(os.environ["OMNIORB_CONFIG"]) as f:
+ ss = re.findall("NameService=corbaname::" + hname + ":\d+", f.read())
+ if verbose(): print("ss = ", ss, end=' ')
+ sl = ss[0]
+ ll = sl.split(':')
+ aPort = ll[-1]
+ #aPort=(ss.join().split(':'))[2];
+ #aPort=re.findall("\d+", ss[0])[0]
+
+ # \begin{E.A.}
+ # put the log files of omniNames in different directory with port reference,
+ # it is cleaner on linux and it is a fix for salome since it is impossible to
+ # remove the log files if the corresponding omniNames has not been killed.
+ # \end{E.A.}
+
+ upath = os.path.join(upath, "omniNames_%s"%(aPort))