X-Git-Url: https://git.bzium.org/embe/man-symlinker.git/blobdiff_plain/b073943b6e28ed5bf0db728fc81d2f62bc730a52..a5b19f03b5b69156c4e3fb3c085c6b08e03f9d81:/man-symlinker?ds=inline diff --git a/man-symlinker b/man-symlinker index 5299829..ff28a36 100755 --- a/man-symlinker +++ b/man-symlinker @@ -12,7 +12,8 @@ MAX_LEN = 1024 SO_RE = re.compile(r'^\.so\s+(.*)$') def process_file(name): - m = MAN_NAME_RE.search(name) + full_name = os.path.join(os.getcwd(), name) + m = MAN_NAME_RE.search(full_name) if not m: return False category = m.group(1) @@ -36,7 +37,7 @@ def process_file(name): link = '../' + link os.unlink(name) os.symlink(link, name) - print 'Converted {} into a symlink to {}'.format(name, link) + print 'Converted {} into a symlink to {}'.format(full_name, link) return True def main(args=[]):