From: apo Date: Fri, 26 Oct 2007 06:21:44 +0000 (+0000) Subject: To use patch on Bug NPAL17025 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60df4127074e06c77aa60032e19e6eae36a3f03e;p=modules%2Fkernel.git 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) --- 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)