compute the absolute path to the file

This avoids the output showing /path/../some/other/subdir

Change-Id: I09cde18e2b05456e0f47489f2053fbcfaaee69df
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-03-06 11:39:06 -05:00
parent ba0ae52458
commit 31ce1eda83

View File

@ -76,7 +76,9 @@ def main():
for key in IGNORE: for key in IGNORE:
if key in raw_data: if key in raw_data:
del raw_data[key] del raw_data[key]
outfilename = os.path.join(outdir, deliv.name + '.yaml') outfilename = os.path.abspath(
os.path.join(outdir, deliv.name + '.yaml')
)
with open(outfilename, 'w', encoding='utf-8') as f: with open(outfilename, 'w', encoding='utf-8') as f:
print('{} created'.format(outfilename)) print('{} created'.format(outfilename))
f.write(yamlutils.dumps(raw_data)) f.write(yamlutils.dumps(raw_data))