File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/compas_ghpython/components Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 2626import glob
2727import os
2828
29- from compas ._os import create_symlinks
29+ # from compas._os import create_symlinks
3030from compas ._os import remove_symlinks
31+ from compas ._os import copy as _copy
3132from compas_ghpython import get_grasshopper_userobjects_path
3233from compas_rhino import _check_rhino_version
3334import compas_rhino
@@ -75,7 +76,15 @@ def install_userobjects(source):
7576 remove_symlinks (symlinks_to_remove )
7677
7778 # And the create new ones
78- created = create_symlinks (symlinks_to_add )
79+ # created = create_symlinks(symlinks_to_add)
80+ created = []
81+ for src , dst in symlinks_to_add :
82+ try :
83+ _copy (src , dst )
84+ except Exception :
85+ created .append (False )
86+ else :
87+ created .append (True )
7988
8089 return list (zip (symlinks_to_add , created ))
8190
You can’t perform that action at this time.
0 commit comments