<br><font size=2 face="sans-serif">Hi Michael,</font>
<br>
<br><font size=2 face="sans-serif">I had added a line in pythonservice.py:</font>
<br>
<br><font size=2 face="sans-serif">os.environ['PYTHONPATH'] = SOFTWARE_HOME</font>
<br>
<br><font size=2 face="sans-serif">from past zope-dev email. It works fine
as Window service. </font>
<br>
<br><font size=2 face="sans-serif">The one suggested by you:</font>
<br>
<br><font size=2 face="sans-serif">os.putenv('PYTHONPATH', r'%s\lib\python'
% INSTANCE_HOME)</font>
<br>
<br><font size=2 face="sans-serif">is working fine also.</font>
<br>
<br><font size=2 face="sans-serif">The problem is:</font>
<br>
<br><font size=2 face="sans-serif">Without Ape, I can run zope in either
way, CMD batch file or window service. When I added APE in product directory
and the file system part in zope.conf, only CMD batch file (runzope.bat)
is OK. The window service dies no matter how you change the settings.</font>
<br>
<br><font size=2><tt>&gt; J Y Lee wrote:<br>
&gt; &nbsp;&gt; Platform: Python 2.3.3, Zope 2.7.0 (using different installation
of <br>
&gt; python<br>
&gt; &nbsp;&gt; 2.3.3), plone 2.03, Ape 0.81, Windows 2000 service pack
3.<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; Problem:<br>
&gt; &nbsp;&gt;<br>
&gt; &nbsp;&gt; Ape works perfectly with the above (and inside plone) by
invoking<br>
&gt; &nbsp;runzope.bat<br>
&gt; &nbsp;&gt; in Windows DOS CMD window. However, when I try to run zope
as <br>
&gt; service in<br>
&gt; &nbsp;&gt; Window 2000, it failed. (By removing the APE configuration
from <br>
&gt; zope.conf,<br>
&gt; &nbsp;&gt; it works fine as window service.)<br>
<br>
I have seen similar behaviour when writing my own zope.conf extensions.
<br>
See http://zope.org/Collectors/Zope/1408<br>
<br>
Michael<br>
<br>
_______________________________________________<br>
For more information about ZODB, see the ZODB Wiki:<br>
http://www.zope.org/Wikis/ZODB/<br>
<br>
ZODB-Dev mailing list &nbsp;- &nbsp;ZODB-Dev@zope.org<br>
http://mail.zope.org/mailman/listinfo/zodb-dev<br>
</tt></font>
<br><FONT SIZE=3><BR>
<BR>
-- For more information about UL, its Marks, and its services for<BR>
EMC, quality registrations and product certifications for global<BR>
markets, please access our web sites at http://www.ul.com and<BR>
http://www.ul-asia.com, or contact your local sales representative. --<BR>
<BR>
*********  Internet E-mail Confidentiality Disclaimer  **********<BR>
<BR>
This e-mail message may contain privileged or confidential<BR>
information.  If you are not the intended recipient, you may not<BR>
disclose, use, disseminate, distribute, copy or rely upon this<BR>
message or attachment in any way.  If you received this e-mail<BR>
message in error, please return by forwarding the message and<BR>
its attachments to the sender.<BR>
<BR>
Underwriters Laboratories Inc. and its affiliates do<BR>
not accept liability for any errors, omissions, corruption<BR>
or virus in the contents of this message or any attachments that<BR>
arise as a result of e-mail transmission.<BR>
*****************************************************************<BR>
</FONT>