Changeset 2884 for pjproject/trunk/tests/pjsua/mod_media_playrec.py
- Timestamp:
- Aug 17, 2009 8:29:47 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/tests/pjsua/mod_media_playrec.py
r2083 r2884 21 21 22 22 # WAV similarity calculator 23 COMPARE_WAV_EXE = "tools/cmp_wav.exe" 23 COMPARE_WAV_EXE = "" 24 if sys.platform.find("win32")!=-1: 25 COMPARE_WAV_EXE = "tools/cmp_wav.exe" 26 G_INUNIX = False 27 else: 28 COMPARE_WAV_EXE = "tools/cmp_wav" 29 G_INUNIX = True 30 24 31 25 32 # Threshold to declare degradation is too high when result is lower than this value … … 79 86 fullcmd = COMPARE_WAV_EXE + " " + input_filename + " " + output_filename + " " + "3000" 80 87 endpt.trace("Popen " + fullcmd) 81 cmp_proc = subprocess.Popen(fullcmd, s tdout=subprocess.PIPE, universal_newlines=True)88 cmp_proc = subprocess.Popen(fullcmd, shell=G_INUNIX, stdout=subprocess.PIPE, universal_newlines=True) 82 89 83 90 # Parse similarity ouput
Note: See TracChangeset
for help on using the changeset viewer.