in build.py, remove existing files before creating symlinks
This commit is contained in:
parent
7f76d596ba
commit
74debe7363
1 changed files with 2 additions and 1 deletions
|
@ -318,7 +318,8 @@ def write_file(file, data):
|
||||||
def write_link(source, target):
|
def write_link(source, target):
|
||||||
print 'linking', source, 'to', target
|
print 'linking', source, 'to', target
|
||||||
write_path(target)
|
write_path(target)
|
||||||
if os.path.lexists(target):
|
# remove files, symlinks *and broken symlinks*
|
||||||
|
if os.path.exists(target) or os.path.lexists(target):
|
||||||
os.unlink(target)
|
os.unlink(target)
|
||||||
os.symlink(source, target)
|
os.symlink(source, target)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue