bin/cubicweb-ctl.bat
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 13 Nov 2009 10:47:26 +0100
branchstable
changeset 3838 9cc134372bf8
parent 3116 8bf500eb01d6
child 4096 871ff503c23e
permissions -rw-r--r--
[web] safety belt to avoid overriding pageid with loadxhtml() HtmlHeaders.define_var() now accepts a third optional 'override' paramater. If set to False, the variable won't be evaluated if it's already defined in the page.

@echo off
rem = """-*-Python-*- script
rem -------------------- DOS section --------------------
rem You could set PYTHONPATH or TK environment variables here
python -x "%~f0" %*
goto exit
 
"""
# -------------------- Python section --------------------
from cubicweb.cwctl import run
import sys
run(sys.argv[1:])

DosExitLabel = """
:exit
rem """