.irbrc
changeset 6 66beb495a861
equal deleted inserted replaced
5:804e1c2b9a40 6:66beb495a861
       
     1 #!/usr/bin/ruby -*- ruby -*-
       
     2 
       
     3 BEGIN {
       
     4 	require 'pathname'
       
     5 	basedir = Pathname.new( __FILE__ ).dirname.expand_path
       
     6 	libdir = basedir + "lib"
       
     7 
       
     8 	puts ">>> Adding #{libdir} to load path..."
       
     9 	$LOAD_PATH.unshift( libdir.to_s )
       
    10 
       
    11 	require basedir + 'utils'
       
    12 	include UtilityFunctions
       
    13 }
       
    14 
       
    15 
       
    16 # Try to require the 'thingfish' library
       
    17 begin
       
    18 	require 'ezmlm'
       
    19 rescue => e
       
    20 	$stderr.puts "Ack! Ezmlm library failed to load: #{e.message}\n\t" +
       
    21 		e.backtrace.join( "\n\t" )
       
    22 end
       
    23