--------------enig50683BDD55C0391366B6186E
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Ohad Lutzky wrote:
> The check whether it's "main.rb" or not is so this doesn't happen for 
> Rake. Now, it works well, but it's ugly. The reason I don't just go 
> ahead and use ':' is that I use glade, as well as some other files which 
> I need to be able to find. This is currently in development, so I'd 
> prefer to avoid forcing people to install the program in predetermined ocations (/usr/local/bin, /usr/local/share/my_app_files, et cetera).
> 

Have your startup script/s determine the "root" of your application's
directory structure, and use a global to refer to all other resources
using absolute paths from this root path? (Yes, I know globals are evil,
but the current working directory is global state too, so it's at least
not a worse solution.)

Depending on being chdirred into your directory structure or on
predetermined install locations is Bad, smells too much of "I know
what's good for my users better than them" to me.

David Vallner


--------------enig50683BDD55C0391366B6186E
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)

iD8DBQFFT+wzy6MhrS8astoRAn5uAJ9eYWZnwuKA4+jgiKC1TFeK+ojxRACeKBSM
pMcXlL35JjNdq1Edqmf486Mf
-----END PGP SIGNATURE-----

--------------enig50683BDD55C0391366B6186E--