Skip to contentSkip to conversation

oe-build-perf-report-email.py: fix one file path

PATCH New Markus Lehtonen 1 participant 1 message Apr 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 scripts/contrib/oe-build-perf-report-email.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/contrib/oe-build-perf-report-email.py +1 -1
index 7f4274efed..81b58ab020 100755
@@ -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))
Signature · 1 line
2.12.0