I found this other thread, maybe it can help: Is there a way to instance a class based on a string or enum in GDScript? - #4 by system
There’s absolutely gotta be a simpler way to do this but I was thinking maybe you could use ProjectSettings.get_global_class_list() which returns an Array[Dictionary] and the dictionaries include the name and path of each global class.
So I thought you could cycle through all those dictionaries until you find one where if dictionary[“class”] == “Globs” then get dictionary[“path”].get_base_dir() to get the plugin directory. Or something like that maybe?