[Nitro] nitro.rb load mojo

George Moschovitis george.moschovitis at gmail.com
Mon Sep 5 03:03:44 EDT 2005

Thanks for pointing this out!

This mechanism was used to provide some default places where to put
stuff that you could require in your application. For example the src and lib
dirs in your application directory are automatically added to the LOAD_PATH.

Btw, I don't use 

require 'my_stuff.rb'

in my projects any more. As suggested by M.Neumann I use the cleaner:

require 'src/my_stuff.rb'

so perhaps this code should be removed.


On 9/4/05, TRANS <transfire at gmail.com> wrote:
> On 9/4/05, Reid Thompson <reid.thompson at ateb.com> wrote:
> > looks to me like it's telling Nitro where things reside -- i.e. tells
> > Nitro that the application code resides in the environments src
> > directory and that library code resides in lib.  If you set it to true,
> > then you're prob going to have to tell Nitro where you've decided to
> > place the src and libs...
> Not so sure. $0 contains the path of the file being executed, so if
> you go to a nitro apps dir and type
>   ruby run.rb
> Then it changes the pwd dir to the current directory and then sticks
> current_dir/lib and current_dir/src on the search path. I know I'm
> missing whatever it is that George is using this for, but still that
> pretty assuming (esspecailyl changing the working dir) --I suspect
> there a better way to handle whatever this is for.
> Anyway I just got rid of it and it works. (well sort of, now I'm
> dealing with Apache2 configuration)
> T.
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general


More information about the Nitro-general mailing list