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: V9_4_0rc2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=243479e2e23e50b58bef32794a4671b0065589b0;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: