Index: webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_export.py |
diff --git a/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_export.py b/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_export.py |
index dcfea944a7223977c08db754215a19926f7fdc0a..1b2fe36c523dfdc4c11c21e6e032f27162764032 100755 |
--- a/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_export.py |
+++ b/webrtc/modules/audio_processing/test/py_quality_assessment/apm_quality_assessment_export.py |
@@ -146,10 +146,10 @@ def main(): |
} |
# Export. |
- exporter = export.HtmlExport( |
- output_path=args.output_dir, |
- output_filename=_GetOutputFilename(args.filename_suffix)) |
- output_filepath = exporter.export(scores) |
+ output_filepath = os.path.join(args.output_dir, _GetOutputFilename( |
+ args.filename_suffix)) |
+ exporter = export.HtmlExport(output_filepath) |
+ exporter.export(scores) |
logging.info('output file successfully written in %s', output_filepath) |
sys.exit(0) |