From 243479e2e23e50b58bef32794a4671b0065589b0 Mon Sep 17 00:00:00 2001 From: rnv Date: Mon, 18 Nov 2019 20:22:38 +0300 Subject: [PATCH] #17978 [CEA] SALOME windows minor corrections : fix for 2 of 5 issue. --- bin/salome_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.39.2