Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update
Separating a plugin from others
-
@unknownuser said:
If you check if your plugin has already been loaded with:
file_loaded?(File.basename(__FILE__))
from inside of a rbs file - the FILE value == '(eval)' !Sounds like File.basename(FILE) is getting set to part of an eval error string.
I wonder if eval error strings are put to the $! message global? -
FILE when ruby is scrambled is useless as it gets evaled, so you cannot use it. had the same problem when developing/using Sketchup Bridge.
workaround: add the path to the global search path for loading scripts $:
Advertisement