Source code for oi_cli2.utils.force_symlink
import os
import errno
[docs]def force_symlink(src: str, dst: str):
try:
os.symlink(src, dst)
except OSError as e:
if e.errno == errno.EEXIST:
os.remove(dst)
os.symlink(src, dst)
import os
import errno
[docs]def force_symlink(src: str, dst: str):
try:
os.symlink(src, dst)
except OSError as e:
if e.errno == errno.EEXIST:
os.remove(dst)
os.symlink(src, dst)