[resending 'cos zope-dev bans batch files for some stupid reason :-S]

Aruna Kathiria wrote:
It started but Im not getting the python command prompt as how we get it
on unix when we use zopectl start (in debug mode).

I'm fairly sure you mean "zopectl debug" on linux :-)

...in which case, I use the attached batch script and python script to
get what you're after.

cheers,

Chris

PS: Debug mode is a red herring here, it has nothing to do with Zope
starting a command prompt or not.

runinteractive.bat:
set ZOPE_HOME=e:\Zope\2.7.3
set PYTHON=%ZOPE_HOME%\bin\python.exe
set INSTANCE_HOME=E:\Zope\MyInstance
cls
%PYTHON% -i %INSTANCE_HOME%\bin\interactive.py %INSTANCE_HOME%\etc\zope.conf


-- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk


# (c) Simplistix Ltd 2004
# All rights reserved

import os
import sys

config_file = os.path.realpath(sys.argv[1])
sys.argv=sys.argv[:1]
print "Parsing %s" % config_file
import Zope
Zope.configure(config_file)
app = Zope.app()

_______________________________________________
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 )

Reply via email to