🏢 PlaceMaker | 25% off for February including new Google Earth data imports!
Learn more
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