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