[Framework-Team] Re: ploneenv - Or how using workingenv for a common Zope2 project might look like ;-)

Ian Bicking ianb at colorstudy.com
Sun Feb 4 21:37:56 UTC 2007



Daniel Nouri wrote:
>>> First off, I think ploneenv would need to modify the runzope.bat script so
>>> that it calls the activate script before startup.
>> Wouldn't it be enough to adjust the PYTHONPATH to look into the
>> workingenv directory first? I thought that's the only thing that's
>> really necessary to activate a workingenv?
> 
> Calling the activate script (on Windows) and including it (on Unix) is the
> way to activate a workingenv.  Internally, activate does more or less what
> you say, but I never had to worry about that.

It doesn't do anything else very substantial.  It creates a function to 
deactivate the workingenv (on Unix) and so it spends some time saving 
what PYTHONPATH was previously, it updates PATH, tweaks PS1, etc. 
That's all just for convenience (though arguably updating PATH is more 
important), but really only the PYTHONPATH update matters.

   Ian





More information about the Framework-Team mailing list