davidmiller / pony-mode

Django mode for emacs
Other
149 stars 32 forks source link

Pass environment variables to manage.py through local variables #71

Open SoftwareMaven opened 11 years ago

SoftwareMaven commented 11 years ago

I need to be able to send some environment variables (locations of certain resources, modifications of the PYTHONPATH, etc) into manage.py. I could see two ways to do this: local variables or through some sort of hook that modifies the state before the actual python process is started.

I've started looking at it, but I'm not familiar enough with how comint works to know how to modify the environment before the process starts. So my request is either to have such a feature or some strong pointers on how to do this myself so I can provide a patch. :)