Why does Ruby 1.9.2 remove "." from LOAD_PATH, and what's the alternative?
Posted
by John Feminella
on Stack Overflow
See other posts from Stack Overflow
or by John Feminella
Published on 2010-05-24T21:12:26Z
Indexed on
2010/05/25
7:21 UTC
Read the original article
Hit count: 170
The latest changesets to Ruby 1.9.2 no longer make the current directory .
part of your LOAD_PATH
. I have a non-trivial number of Rakefiles that assume that .
is part of the LOAD_PATH
, so this broke them. Was there a particular justification for doing this?
As for a fix, adding $: << "."
everywhere works, but seems incredibly hacky and I don't want to do that. What's the preferred way to make my Rakefiles 1.9.2+ compatible?
© Stack Overflow or respective owner