[Ruby API] Bug Mac - Sketchup.get_resource_path
-
Sketchup.get_resource_path "Materials.strings"
returns an empty string on Mac in SU8. Same applies to "Styles.strings" etc.
Sketchup.get_resource_path '' returns:
'/Library/Application Support/Google SketchUp 8/SketchUp/Resources/en-US'The file is located in 'Sketchup.app/Contents/Resources/English.lproj/Materials.strings'
I haven't checked in SU2013.
-
(Sketchup.get_resource_path '' ) << '/Materials.strings'
=>
/Applications/SketchUp 2013/SketchUp.app/Contents/Resources/Content/Resources/en-US/Materials.strings
works in v2013 on my mac.
john
-
Sketchup.get_resource_path "Materials.strings"
doesn't work in SU2013.
Thanks for the workaround, although it works only for SU2013.
-
SU v8 and v7 on my mac
edit, it returns a path to nowhere... but I knew I had it somewhere...
matPath = (ENV[ "IG_ROOT"]).dup << "/English.lproj/Materials.strings"
works on v8 and v2013 at least
john
Advertisement