Ceasar/staticjinja — pull request #7 by NeuronQ (2012-12-29 10:36:32+00:00)
Title: Fixes a potential project path bug and adds ability to set a different output dir

This fixes a potential project path problem. In:

mod = inspect.getmodule(inspect.stack()[1][0])

there should be `inspect.stack()[-1][0]`, otherwise it doesn't work when someone calls `build.py` from other script or when running it in the debugger (the Python debugger inserts its things into the stack...).

I also added the ability to specify a different output dir (via an `outpath` argument to `staticjinja.main()`) and documented this in the README.