# File lib/pluginfactory.rb, line 364
364:         def makeRequirePath( modname, subdir )
365:                 path = []
366:                 myname = self.factoryType
367: 
368:                 # Make permutations of the two parts
369:                 path << modname
370:                 path << modname.downcase
371:                 path << modname                        + myname
372:                 path << modname.downcase + myname
373:                 path << modname.downcase + myname.downcase
374: 
375:                 # If a non-empty subdir was given, prepend it to all the items in the
376:                 # path
377:                 unless subdir.nil? or subdir.empty?
378:                         path.collect! {|m| File::join(subdir, m)}
379:                 end
380: 
381:                 return path.uniq.reverse
382:         end