ametaireau/pelican — pull request #431 by synapticarbors (2012-07-20 11:50:14+00:00)
Title: Modify system path to ensure current directory is included

I've noticed on some machines, the current directory is not automatically placed in `sys.path`, which causes issues if you have an import statement in your settings file (for a plugin in that directory for example). One option is to have the user modify their `sys.path` in their settings file, as is done in [tools/templates/publishconf.py](https://github.com/ametaireau/pelican/blob/master/pelican/tools/templates/publishconf.py.in#L5), but this pull request just adds it automatically to avoid confusion on the part of the user.

I've modified the path in the Pelican class `__init__` method before plugin initialization, since I think the only places (that I could find) where an incorrect path could be a problem is loading the plugins and then loading the settings.