Re-create broken symlinks

This commit is contained in:
Roman Yurchak 2018-10-11 10:06:27 +02:00
parent 0946e42ba0
commit 1f7c246378
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ def make_symlinks(env):
exec_path = Path(__file__).resolve()
for symlink in symlinks:
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():
symlink_path.symlink_to(exec_path)
if symlink == 'c++':