Get absolute path for linking

This commit is contained in:
Matthew Honnibal 2017-03-16 20:41:23 +01:00
parent 2524efc0ac
commit 303a56f173

View File

@ -45,7 +45,7 @@ def symlink(model_path, link_name, force):
util.sys_exit(
"To overwrite an existing link, use the --force flag.",
title="Link {l} already exists".format(l=link_name))
model_path = os.path.abspath(model_path)
os.symlink(model_path, link_path)
util.print_msg(
"{a} --> {b}".format(a=model_path, b=link_path),