nvahalik/Wiz — pull request #1 by MaThGo (2012-08-25 18:44:05+00:00)
Title: Fix for problems with symlinked wiz-Script

I noticed that wiz doesn't get his script path right in the case you would call it through a Symlink

For example:
I usually have all my User scripts and under
``` ~/opt/$SCRIPTNAME/ ```
and linked the executables to
``` ~/bin/$EXECNAME ```
(``` ~/bin/ ```is in my $PATH of course )

So in this case it looks as the following
Wiz lives under ``` ~/opt/Wiz/ ``` and ``` ~/opt/Wiz/wiz/ ```
is linked to ``` ~/bin/wiz ```

In you implementation this causes wiz to search under ``` ~/bin/ ``` for the ``` wiz.php ```

So i added symlink resolving. In a second commit i added support for a user setable WIZ_SCRIPT_PATH.
You can omit the second commit as it isnt part of the Bug fix, but i think it would be neat little extra feature for some other special use cases.