How can I change PATH environment variable for Apache 2.4 process on Windows ?
I want to be able to load mod_wsgi with custom Python distribution bundled with application installer. Right now it only loads if Python was installed separately and python dll is already in Windows/system32 folder.
I don't want to modify system PATH variable.
According to this documentation:
If the Python DLL is not in the PATH and can't be added there, you can add to the Apache configuration file:
This must be before the
LoadModule line for the
You may also need to set:
where the argument is the value of
sys.prefix for the Python installation.
The later is needed if Python when being initialised from within mod_wsgi can't find where the Python installation was.