Hi,

In message "[ruby-talk:12772] Re: Library packaging"
    on 01/03/17, Dave Thomas <Dave / PragmaticProgrammer.com> writes:

|> Intresting.  Let me add it to the ToDo list.
|
|Before you do, let's discuss this a bit.

Of course.  I'm not in a hurry in any sense.

|I think there's a simpler solution to the original problem: add the
|directory from which the main Ruby program was run to the search path
|if SAFE is 0. So, if I say
|
|   ruby ../../demo/fred.rb
|
|then '../../demo' will be prepended to $:

This has been proposed several times (in Japanese list), but I
couldn't find the portable and reliable way to get the base path of
the executable file on UNIX flavored OS.  Can you?

							matz.