startup script uses PYTHONPATH instead of sys.path
|OpenERP buildout recipe||
The openerp startup script created by the recipe sets the path through the PYTHONPATH environment variable.
This is less robust than the sys.path hacking done by other recipes : IIRC PYTHONPATH is interpreted in site.py, and some linux distros (I've seen it on Debian Etch, don't know if it's still current) may ignore it or have the global site-packages (dist-packages for Debian) take precedence over it, which breaks the reproducibility of the buildout.
Also, creating python startups open the road to more flexibility. An example : a startup scripts for tests may want to load a cheatable datetime implementation.
|Changed in anybox.recipe.openerp:|
|status:||New → In Progress|