From 1da641661bb5963fcbd7ac2c20bc997c3eae6f18 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 6 Apr 2017 10:10:18 +0300 Subject: oe-build-perf-report-email.py: fix one file path Sending report email was not working correctly if the script was given an html report path that contained directory components. Signed-off-by: Markus Lehtonen Signed-off-by: Richard Purdie --- scripts/contrib/oe-build-perf-report-email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/contrib') diff --git a/scripts/contrib/oe-build-perf-report-email.py b/scripts/contrib/oe-build-perf-report-email.py index 7f4274efed..81b58ab020 100755 --- a/scripts/contrib/oe-build-perf-report-email.py +++ b/scripts/contrib/oe-build-perf-report-email.py @@ -243,7 +243,7 @@ def main(argv=None): html_report = None if args.html: scrape_html_report(args.html, outdir, args.phantomjs_args) - html_report = os.path.join(outdir, args.html) + html_report = os.path.join(outdir, os.path.basename(args.html)) if args.to: log.info("Sending email to %s", ', '.join(args.to)) -- cgit v1.2.3