From 31ce1eda83a6ad1ab58d5f78b2df7944568d6ca3 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 6 Mar 2018 11:39:06 -0500 Subject: [PATCH] compute the absolute path to the file This avoids the output showing /path/../some/other/subdir Change-Id: I09cde18e2b05456e0f47489f2053fbcfaaee69df Signed-off-by: Doug Hellmann --- openstack_releases/cmds/init_series.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openstack_releases/cmds/init_series.py b/openstack_releases/cmds/init_series.py index 34bf3cfd37..d7ead6428b 100644 --- a/openstack_releases/cmds/init_series.py +++ b/openstack_releases/cmds/init_series.py @@ -76,7 +76,9 @@ def main(): for key in IGNORE: if key in raw_data: 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: print('{} created'.format(outfilename)) f.write(yamlutils.dumps(raw_data))