Skip to content

Commit

Permalink
Fix a symlinking bug for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Jan 15, 2024
1 parent a379b3a commit 572248f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libbs/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.17.0"
__version__ = "0.18.0"
5 changes: 5 additions & 0 deletions libbs/plugin_installer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import platform
from pathlib import Path
import textwrap
import sys
Expand Down Expand Up @@ -136,6 +137,10 @@ def ask_path(target, location, default=None) -> Optional[Union[bool, Path]]:

@staticmethod
def link_or_copy(src, dst, is_dir=False, symlink=False):
if platform.platform().startswith("Windows"):
# you can't symlink on windows, so just copy
symlink = False

# clean the install location
shutil.rmtree(dst, ignore_errors=True)
try:
Expand Down

0 comments on commit 572248f

Please sign in to comment.