From 60df4127074e06c77aa60032e19e6eae36a3f03e Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 26 Oct 2007 06:21:44 +0000 Subject: [PATCH] To use patch on Bug NPAL17025 EDF SALOME 4 : Can't launch Salome 4 if another Salome's Session is running (whatever the version is) --- bin/runSalome.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/runSalome.py b/bin/runSalome.py index d39c788dd..c59046cc8 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -726,9 +726,15 @@ def searchFreePort(args, save_config=1): status = 1; for item in lines: m = regObj.search( item ) - if m and m.group(1) == NSPORT : - status = 0; - break; + if m: + try: + p = int( m.group(1) ) + if p == NSPORT: + status = 0; + break; + except: + pass + pass if status == 1: print "%s - OK"%(NSPORT) -- 2.39.2