[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: How to query current path from a library?
- From: Jorge <xxopxe@...>
- Date: Mon, 22 Feb 2010 15:52:12 -0200
I have a module that does loadfile() to load some stuff. This stuff is
placed with the module obviously. Tough all relative paths are relative
to the where the main program lies (the one one doing the require()). If
i could get the library's path i could fix the relaitve paths, but seems
i can't get that?
(Oh, and the same problem occures if my library attempts to loadlib()
using relative paths).
Right now i'm just symlinking into the main program's directory, ugh.