Commit 1f7c2463 authored by Roman Yurchak's avatar Roman Yurchak

Re-create broken symlinks

parent 0946e42b
...@@ -77,6 +77,9 @@ def make_symlinks(env): ...@@ -77,6 +77,9 @@ def make_symlinks(env):
exec_path = Path(__file__).resolve() exec_path = Path(__file__).resolve()
for symlink in symlinks: for symlink in symlinks:
symlink_path = ROOTDIR / symlink symlink_path = ROOTDIR / symlink
if os.path.lexists(symlink_path) and not symlink_path.exists():
# remove broken symlink so it can be re-created
symlink_path.unlink()
if not symlink_path.exists(): if not symlink_path.exists():
symlink_path.symlink_to(exec_path) symlink_path.symlink_to(exec_path)
if symlink == 'c++': if symlink == 'c++':
......
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