From: vsr Date: Tue, 25 Sep 2007 12:04:36 +0000 (+0000) Subject: Fix bug NPAL17025 (can't launch Salome 4 if another Salome's session is running) X-Git-Tag: V4_1_0a1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1fd697769f04006087030255ec5054d948d5dc87;p=modules%2Fkernel.git Fix bug NPAL17025 (can't launch Salome 4 if another Salome's session is running) --- diff --git a/bin/runSalome.py b/bin/runSalome.py index 6ccc96453..62afcfb21 100755 --- a/bin/runSalome.py +++ b/bin/runSalome.py @@ -730,9 +730,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)