File tree 2 files changed +3
-4
lines changed
2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -203,14 +203,13 @@ def verify_sketch(path)
203
203
# ensure that the given library is installed, or symlinked as appropriate
204
204
# return the path of the prepared library, or nil
205
205
def install_local_library ( library_path )
206
- sketchbook = get_pref ( "sketchbook.path" )
207
206
library_name = File . basename ( library_path )
208
- destination_path = File . join ( sketchbook , library_name )
207
+ destination_path = File . join ( @installation . lib_dir , library_name )
209
208
210
209
# things get weird if the sketchbook contains the library.
211
210
# check that first
212
211
if File . exist? destination_path
213
- uhoh = "There is already a library '#{ library_name } ' in the sketchbook "
212
+ uhoh = "There is already a library '#{ library_name } ' in the library directory "
214
213
return destination_path if destination_path == library_path
215
214
216
215
# maybe it's a symlink? that would be OK
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ def autolocate
55
55
"processing.app.Base" ,
56
56
]
57
57
end
58
- ret . lib_dir = File . join ( osx_place , "Libraries" )
58
+ ret . lib_dir = File . join ( osx_place , "Libraries" ) # TODO: probably wrong
59
59
ret . requires_x = false
60
60
return ret
61
61
end
You can’t perform that action at this time.
0 commit comments