Skip to content

Instantly share code, notes, and snippets.

@alexschreyer
Last active October 29, 2023 19:15
Show Gist options
  • Save alexschreyer/24e26b8ca4b456145df8382dbd38191d to your computer and use it in GitHub Desktop.
Save alexschreyer/24e26b8ca4b456145df8382dbd38191d to your computer and use it in GitHub Desktop.
A small script to load extensions from a shared folder
# Load SketchUp methods
require 'sketchup'
# Provide some feedback
p 'Start loading from shared folder'
# Make the folder path compatible and then load all Ruby files from that folder
loc = File.expand_path('C:/Users/<username>/OneDrive/SketchUp/Plugins')
require_all( loc )
p 'Done loading from shared folder'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment