scripts: size_report: fix path prepending

Fixes potential issue on windows.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-08-06 10:42:35 -04:00
commit 239d175eff

View file

@ -217,7 +217,8 @@ def get_die_filename(die, lineprog):
# Prepend output path to relative path
if not path.is_absolute():
path = Path(args.output) / path
output = Path(args.output)
path = output.joinpath(path)
# Change path to relative to Zephyr base
path = path.resolve()