/[freeride]/freeride/freebase/core.rb
ViewVC logotype

Diff of /freeride/freebase/core.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by richkilmer, Wed Feb 6 03:24:38 2002 UTC revision 1.2 by richkilmer, Thu Feb 7 03:01:15 2002 UTC
# Line 132  module FreeBASE Line 132  module FreeBASE
132      #      #
133      def load_plugins      def load_plugins
134        @properties["config/plugin_path"].split(";").each do |path|        @properties["config/plugin_path"].split(";").each do |path|
135          Dir.foreach(path) do |dir|          Dir.foreach(path) do |file|
136            if dir!=".." and dir!="." and File.stat("#{path}/#{dir}").directory?            if file!=".." and file!="." and File.stat("#{path}/#{file}").directory?
137              filespec = "#{path}/#{dir}/plugin.xml"              filespec = "#{path}/#{file}/plugin.xml"
138              next unless File.exist?(filespec)              next unless File.exist?(filespec)
139              plugin = FreeBASE::Plugin.new(self, filespec)              FreeBASE::Plugin.new(self, filespec)
140              elsif file[-4..-1]==".xml" and !File.stat("#{path}/#{file}").directory?
141                filespec = "#{path}/#{file}"
142                FreeBASE::Plugin.new(self, filespec)
143            end            end
144          end          end
145        end        end

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26