From: nobu@... Date: 2006-01-15T00:37:27+09:00 Subject: Re: ruby under cygwin & windows paths Hi, At Fri, 13 Jan 2006 21:12:02 +0900, Mojca Miklavec wrote in [ruby-talk:175655]: > But if I execute the script from somewhere else, inclusion doesn't > work any more: > > C:/mypath/myscript.rb:10:in `require': No such file to load -- mylib (LoadError) > from C:/mypath/myscript.rb:10 > > since File.dirname(__FILE__) is now set to "c:\mypath" and this one > also gets included in $LOAD_PATH. But cygwin cannot access that path > by default. Sounds strange. File.dirname("C:/mypath/myscript.rb") is "c:\mypath" but not "c:/mypath"? How do you add it to $LOAD_PATH? -- Nobu Nakada