27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'ext/ae-rad/ae-rad.rb', line 27
def load_libs
@libs = ArcadiaLibs.new(self)
libs = conf('libraries').split(',')
libs.each{|lib|
if lib
begin
require conf('libraries.'+lib+'.source')
@libs.add_lib(
ArcadiaLibs::ArcadiaLibParams.new(
conf('libraries.'+lib+'.name'),
conf('libraries.'+lib+'.source'),
conf('libraries.'+lib+'.require'),
eval(conf('libraries.'+lib+'.collection.class')))
)
rescue Exception
msg = "Loading lib "+'"'+lib+'"'+" ("+$!.class.to_s+") "+" : "+$! + " at : "+$@.to_s
if Tk.messageBox('icon' => 'error', 'type' => 'okcancel',
'title' => '(Rad) Libs',
'message' => msg) == 'cancel'
raise
exit
else
Tk.update
end
end
end
}
end
|