Commit 6671fc80 authored by ARCHER's avatar ARCHER 💬
Browse files

Do not convert to path if already a path.

parent e894ead6
......@@ -43,11 +43,15 @@ if __name__ == "__main__":
for name in lines:
path=sarnomencl.sar2path(name,skip=args.skip,prefix=args.prefix)
if not path and args.skip:
sys.stderr.write("%s\n" % name.rstrip())
if name.startswith('/'):
# allready a path
print name.rstrip()
else:
print path
path=sarnomencl.sar2path(name,skip=args.skip,prefix=args.prefix)
if not path and args.skip:
sys.stderr.write("%s\n" % name.rstrip())
else:
print path
......
Markdown is supported
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