# File lib/puppet/util/autoload.rb, line 72
72:   def load(name,env=nil)
73:     path = name.to_s + ".rb"
74: 
75:     searchpath(env).each do |dir|
76:       file = File.join(dir, path)
77:       next unless file_exist?(file)
78:       begin
79:         Kernel.load file, @wrap
80:         name = symbolize(name)
81:         loaded name, file
82:         return true
83:       rescue SystemExit,NoMemoryError
84:         raise
85:       rescue Exception => detail
86:         puts detail.backtrace if Puppet[:trace]
87:         raise Puppet::Error, "Could not autoload #{name}: #{detail}"
88:       end
89:     end
90:     false
91:   end