Adding INSTANCE/lib/python to PYTHONPATH
Looks like INSTANCE_HOME/lib/python is added to PYTHONPATH at some point during startup, but not on the zopectl/runzope scripts. I've tried installing eggs into INSTANCE_HOME/lib/python and they won't load unless it's added to PYTHONPATH at startup time. Thus, I propose to add INSTANCE_HOME/lib/python to PYTHONPATH on the said scripts. Anyone against making this change all the way down to Zope 2.9? -- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214
+1 On Aug 31, 2006, at 4:46 PM, Sidnei da Silva wrote:
Looks like INSTANCE_HOME/lib/python is added to PYTHONPATH at some point during startup, but not on the zopectl/runzope scripts.
I've tried installing eggs into INSTANCE_HOME/lib/python and they won't load unless it's added to PYTHONPATH at startup time.
Thus, I propose to add INSTANCE_HOME/lib/python to PYTHONPATH on the said scripts. Anyone against making this change all the way down to Zope 2.9?
-- Sidnei da Silva Enfold Systems http://enfoldsystems.com Fax +1 832 201 8856 Office +1 713 942 2377 Ext 214 _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Sidnei da Silva wrote:
Looks like INSTANCE_HOME/lib/python is added to PYTHONPATH at some point during startup, but not on the zopectl/runzope scripts.
I've tried installing eggs into INSTANCE_HOME/lib/python and they won't load unless it's added to PYTHONPATH at startup time.
Thus, I propose to add INSTANCE_HOME/lib/python to PYTHONPATH on the said scripts. Anyone against making this change all the way down to Zope 2.9?
we've also seen a need to add an arbitrary path to PYTHONPATH in these script for situations like using ian bickings workingenv. workingenv constrains the execution and installation environment to an arbitrary directory(no more installing eggs into the site-packages). Might be nice to have this as an option for mkinstance; maybe --home to make it similar to disutils? -w
participants (3)
-
Chris McDonough -
Sidnei da Silva -
whit