We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed73452 commit 7c1abefCopy full SHA for 7c1abef
install.py
@@ -53,6 +53,10 @@ def _src_is_newer(src_path: str, dst_path: str) -> bool:
53
54
55
def _symlink(src_path: str, dst_path: str) -> None:
56
+ """
57
+ pre:: os.path.exists(src_path)
58
+ pre:: os.path.exists(os.path.dirname(dst_path))
59
60
print("Installing {} as {}".format(src_path, dst_path))
61
if os.path.exists(dst_path) and not _src_is_newer(src_path, dst_path):
62
return
0 commit comments