This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def relative_symlink(target: Union[Path, str], destination: Union[Path, str]): | |
"""Create a symlink pointing to ``target`` from ``location``. | |
Args: | |
target: The target of the symlink (the file/directory that is pointed to) | |
destination: The location of the symlink itself. | |
""" | |
target = Path(target) | |
destination = Path(destination) | |
target_dir = destination.parent |