Fix paths when moving specs

Needed to use os.path.join to concatenate the paths
when moving the specs from approved to implemented.

Change-Id: Icf39ce8619dcec88d2d69bcbf55ea3888eb3b7a5
This commit is contained in:
Matt Riedemann
2017-02-10 16:50:37 -05:00
committed by Matt Riedemann
parent da1ba4e5a0
commit 135497b713

View File

@@ -86,8 +86,8 @@ def move_implemented_specs(release, verbose=False, dry_run=False):
if not dry_run:
# move the file from approved to implemented
os.rename(approved_dir + spec_fname,
implemented_dir + spec_fname)
os.rename(os.path.join(approved_dir, spec_fname),
os.path.join(implemented_dir, spec_fname))
# add an entry to the redirects file
with open(redirects_file, 'a') as redirects:
redirects.write('approved/%s ../implemented/%s\n' %