From: zoranlazarevic@... (Zoran Lazarevic) Date: 2003-11-26T05:42:10+09:00 Subject: Re: Library path relative to current .rb file Gavin Sinclair wrote in message news:<16710416244. > require 'pathname' > dir = Pathname.new(File.expand_path(__FILE__)).realpath We probably need function 'require_local' because this is often used. Or maybe an extra argument to require ( require 'myfile',:relative=>true ) require 'require_local' require_local 'path_relative to this file' .... require 'pathname' def require_local filename dir = Pathname.new(File.expand_path(__FILE__)).realpath require File.join(dir,filename) end --Laza