From: rnv Date: Mon, 18 Nov 2019 17:22:38 +0000 (+0300) Subject: #17978 [CEA] SALOME windows minor corrections : fix for 2 of 5 issue. X-Git-Tag: EMC2P_V_1_2_0~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f2cd45c6fd67187a79147fdf52a85c59e780693c;p=modules%2Fkernel.git #17978 [CEA] SALOME windows minor corrections : fix for 2 of 5 issue. --- diff --git a/bin/salome_utils.py b/bin/salome_utils.py index 80c2adac9..911f35f90 100644 --- a/bin/salome_utils.py +++ b/bin/salome_utils.py @@ -567,7 +567,7 @@ def getOmniNamesPid(port): cmd = 'WMIC PROCESS get Caption,Commandline,Processid /VALUE' proc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) # Get stdout - allProc = proc.communicate()[0] + allProc = proc.communicate()[0].decode() # find Pid of omniNames pid = re.findall(r'Caption=.*omniNames.*\n?CommandLine=.*omniNames.*\D%s\D.*\n?ProcessId=(\d*)'%(port),allProc)[0] else: