davidmiller / pony-mode

Django mode for emacs
Other
149 stars 32 forks source link

Allow projects to specify additions to the pythonpath. #67

Closed SoftwareMaven closed 11 years ago

SoftwareMaven commented 11 years ago

.dir-locals pony-settings can now inlcude a pythonpath option that is passed to manage.py using --pythonpath. --pythonpath will only be passed if it is included in the project.

SoftwareMaven commented 11 years ago

My work has multiple projects that need to be included on the pythonpath for the project to work. For a variety of reasons, we prefer not to make these changes in the settings file (we actually have wrapper scripts that ensure the environment is correct).

This is the first patch (maybe the only necessary; I think the rest can be managed using environment variables) towards making it so I can use pony in that environment.

My lisp is quite rusty, so feel free to point out things you'd prefer to be done in different ways.

davidmiller commented 11 years ago

Kind of barmy, but why not :)

Django exposes it, so we may as well continue to do so here.