Closed samuelclay closed 12 years ago
What exactly does it fix? When does __FILE__
not work currently?
If the binary is a symlink, then __FILE__
is pointing to the wrong place. realpath
dereferences the binary, so the relative path works correctly. Ran into this issue.
I wrote this a while ago, but I think it's time for a pull request to at least debate its merits. Uses realpath instead of wrongpath.