In Ruby, you can run
cd build
ruby app.rb
or you can say
ruby -I./lib build/app.rb
I'm not a rubyist, but I remember this from one of my pet projects
You can add an additional directory for requires, BEFORE launching the
application
On Mon, Aug 26, 2013 at 9:35 AM, Ryan Schmidt wrote:
>
>
On Aug 26, 2013, at 07:25, Gagle wrote:
> What do you think?
As you said this issue affects most languages, perhaps all. I don't think it's
the language's (or runtime's) responsibility to second-guess the programmer (or
user) about their environment. I think if you want to guarantee that the c
The cwd has nothing to do with any language because it is part of the os
but it can break your app and it's nearly impossible to fix it if you don't
know that cwd != dir of main file.
"node dir/app" behaves different than "cd dir && node app".
The __dirname variable fixes this problem but it on