Commit e59349c8 authored by Matt Traudt's avatar Matt Traudt
Browse files

Make symlink relative ...

I think this is the more common way to do things. It allows you to move
the files around without the symlink breaking.
parent 0402bdc4
......@@ -414,9 +414,10 @@ class V3BwFile(object):
fd.write(str(self.header))
for line in self.bw_lines:
fd.write(str(line))
output_basename = os.path.basename(output)
log.debug('Creating symlink from {} to {}.'
.format(output, out_link))
os.symlink(output, out_link)
.format(output_basename, out_link))
os.symlink(output_basename, out_link)
else:
with open(output, 'wt') as fd:
fd.write(str(self.header))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment