Talk:Pinax

How does the passenger_wsgi.py file work in Step 4?

(1) It uses os.system to source the 'activate' script in the virtual environment, but doesn't this method just launch a sub-process, which then immediately exits, losing the sourced code?

(2) It uses os.execl to re-start the program with the 'correct' Python interpreter, but how does this re-start affect the WSGI environment?

I was able to get Pinax working with WSGI by adding the site-packages directory in the virtual environment to the site dirs (with site.addsitedir), as suggested at http://code.google.com/p/modwsgi/wiki/VirtualEnvironments.

Thanks for any help and/or additional explanations.

--Jtkorb 12:07, 16 January 2011 (PST)


 * (1) That line of code is, indeed, complete nonsense. I've removed it... I can't speak to the rest, though, having never used Pinax. Andrew F 10:27, 18 January 2011 (PST)