-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing error with loading the ruby bindings normally
- Loading branch information
1 parent
db4ed7d
commit 74c3859
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74c3859
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks legit, what error was this causing @axelstudios ?
74c3859
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line got merged in during the last iteration:
OpenStudio/openstudiocore/ruby/openstudio.rb
Line 17 in efd0d99
The problem is that
pathname
isn't part of SketchUp 2013 and earlier, so the plug-in was failing to load. So I made a change to load the absolute path of thepathname.rb
if it matched those SketchUp versions, which fixed it. But in doing so, I added theSketchup
constant to openstudio.rb, which obviously can't be found if you just load the bindings like normal (results measures failed in the app). So finally, I made this commit to check whether or not we're in SketchUp <=2013, and if so, load pathname.rb that we provide.