From: Markus Lehtonen Date: Thu, 6 Apr 2017 07:10:18 +0000 (+0300) Subject: oe-build-perf-report-email.py: fix one file path X-Git-Tag: yocto-2.3~197 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1da641661bb5963fcbd7ac2c20bc997c3eae6f18;p=openembedded-core.git 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 --- 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))