[Alexandria-list] DevEnv setup
Joseph Method
tristil at gmail.com
Fri Apr 18 13:14:06 EDT 2008
> module Alexandria
> module Config
> DATA_DIR = '/usr/share/alexandria'
> MAIN_DATA_DIR = DATA_DIR
> LIB_DIR = '/usr/lib/ruby/site_ruby/1.8'
> end
> end
>
But after rake install the files don't end up in /usr/local/lib? That
LIB_DIR directory doesn't get used for anything if you grep for it.
My work pattern is edit a file in the source tree, sudo rake install,
run alexandria. If we want to make alexandria runnable from the source
tree, we have to make the require statements always use relative
lookup. This is:
require File.dirname(__FILE__) + '/directory/somefile'
(or require 'directory/somefile'? For some reason I always use above syntax)
instead of:
require 'alexandria/somefile'
--
-J. Method
More information about the Alexandria-list
mailing list