kraih/mojo — pull request #686 by tianon (2014-10-08 19:28:09+00:00)
Title: use abs_path to force do() to ignore @INC

Fixes #683

I've run the tests with `TEST_HYPNOTOAD=1 TEST_MORBO=1` and everything passes here. The `@INC` side effect isn't documented anywhere that I'm aware of, so I think this change is OK and generally causes things to be more in line with what people expect (as evidenced by #683).

The relevant precedent for this is that `hypnotoad` [already does this](https://github.com/kraih/mojo/blob/d456e685645689058e10692c793e7283cf26e981/lib/Mojo/Server/Hypnotoad.pm#L44). I didn't want to remove that invocation though, because it seemed reasonable for `HYPNOTOAD_APP` to contain the `abs_path` version of the argument (and running `abs_path` twice and only during initialization seems pretty harmless).

Of course, I'm happy to rebase, amend, force push, modify, replace, etc. :smile: