def Plugin.load_plugin path
@@lst_files_error = []
t0 = Time.now.to_f
hsh_plug = {}
# Dir[File.join(LibFredo6.sudir, "*_Dir_*")].each do |f|
f=File.join(LibFredo6.sudir, path)
s = File.basename(f)
# next unless s =~ /\A(.+)_Dir_(\d\d)/i
s =~ /\A(.+)_Dir_(\d\d)/i
lplu = Dir[File.join(f, "*.plugin")]
# next if lplu.empty?
pluname = File.basename lplu[0], ".plugin"
key = $1
# next if key == "LIBFREDO6"
oldver = hsh_plug[key]
if oldver
hsh_plug[key][1] = s if s > oldver[1]
else
hsh_plug[key] = [pluname, s]
end
# end