How to reload a extension loader file?
-
Hi all.
I need to reload a rb file,But I get some error in the ruby control panel.
"Extension loader file XXX.rb can not be loaded because an extension loader file with the same name was previously loaded."
How to reload a extension loader file?
thanks !
wikii
-
need help!
thanks!
-
You'll have to restart SketchUp to get your Extension to be reformed.
However, if you simply want to reload its main code file[s] from inside its folder, use:
load "XXX/XXX_code.rb"
Change it to suit the actual file-name... -
@tig said:
You'll have to restart SketchUp to get your Extension to be reformed.
However, if you simply want to reload its main code file[s] from inside its folder, use:
load "XXX/XXX_code.rb"
Change it to suit the actual file-name...I get it.
thankyou,TIG。happy new year!
wikii
-
I use this.
def self.reload() Sketchup.send_action(CMD_RUBY_CONSOLE) load __FILE__ puts "reloaded #{__FILE__.to_s}\n" end
Advertisement