root/trunk/loadpath.rb

Revision 277, 383 bytes (checked in by ged, 7 months ago)
  • Updated the build system substantially, including stuff from both the ThingFish? and Arrow projects.
  • Updated keywords on everything.
  • Reorganized the specs to match the convention of spec <-> lib hierarchies matching.
  • Added the loadpath library
  • Started refactor of bogswiddle to use Sequel instead of ActiveRecord?
  • Merged improvements from Arrow's logging system back into the FaerieMUD logger.
  • Updated documentation in FaerieMUD::SimpleVerb?
  • Refactored some of the early NLG code out into FaerieMUD::Linguistics
  • Fixed a bug in the recursive-containment detection code that missed containment more than two levels deep.
  • Corrected FaerieMUD::Item description
  • Added a VERSION constant to the toplevel FaerieMUD module.
  • Property svn:keywords set to Date Rev Author URL Id
Line 
1BEGIN {
2        require 'pathname'
3        basedir = Pathname.new( __FILE__ ).expand_path.dirname
4       
5        libdir = basedir + 'lib'
6        pluginsdir = basedir + 'plugins'
7        pluginlibs = Pathname.glob( pluginsdir + '*/lib' )
8       
9        $LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
10        pluginlibs.each do |dir|
11                $LOAD_PATH.unshift( dir.to_s ) unless $LOAD_PATH.include?( dir.to_s )
12        end
13}
Note: See TracBrowser for help on using the browser.