]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
#17978 [CEA] SALOME windows minor corrections : fix for 2 of 5 issue.
authorrnv <rnv@opencascade.com>
Mon, 18 Nov 2019 17:22:38 +0000 (20:22 +0300)
committerrnv <rnv@opencascade.com>
Mon, 18 Nov 2019 17:22:38 +0000 (20:22 +0300)
bin/salome_utils.py

index 80c2adac9fe700dd0ac54f11f299f4892cf62daf..911f35f90ab6c3906903258dfd37c3cec266f927 100644 (file)
@@ -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: