1From 53b6161d2413406778fa222274069c82846f0297 Mon Sep 17 00:00:00 2001 2From: Carlos Santos <casantos@datacom.com.br> 3Date: Thu, 6 Dec 2018 21:17:02 -0200 4Subject: [PATCH] Look for pcm-core at the default path 5 6On Buildroot, pcm-core.x is installed as /usr/bin/pcm-core. Remove the 7platform test, since we know that it's neither CigWin nor Windows, and 8use the default path. 9 10It's not nice to have a Buildroot specific patch but let's use one while 11we look for a solution that is acceptable upstream. 12 13Signed-off-by: Carlos Santos <casantos@datacom.ind.br> 14--- 15 pmu-query.py | 8 +------- 16 1 file changed, 1 insertion(+), 7 deletions(-) 17 18diff --git a/pmu-query.py b/pmu-query.py 19index 4c596c7..dc39df6 100755 20--- a/pmu-query.py 21+++ b/pmu-query.py 22@@ -3,7 +3,6 @@ import urllib2 23 import json, csv 24 import subprocess 25 import sys 26-import platform 27 import getopt 28 29 all_flag = False 30@@ -38,12 +37,7 @@ if filename == None: 31 except StopIteration: 32 break 33 34- if platform.system() == 'CYGWIN_NT-6.1': 35- p = subprocess.Popen(['./pcm-core.exe -c'],stdout=subprocess.PIPE,shell=True) 36- elif platform.system() == 'Windows': 37- p = subprocess.Popen(['pcm-core.exe -c'],stdout=subprocess.PIPE,shell=True) 38- else: 39- p = subprocess.Popen(['./pcm-core.x -c'],stdout=subprocess.PIPE,shell=True) 40+ p = subprocess.Popen(['/usr/bin/pcm-core -c'],stdout=subprocess.PIPE,shell=True) 41 42 (output, err) = p.communicate() 43 p_status = p.wait() 44-- 452.19.2 46 47