bin/cubicweb-ctl.bat
author Alexandre Fayolle <alexandre.fayolle@logilab.fr>
Tue, 13 Oct 2009 07:31:51 +0200
branchstable
changeset 3650 012da21e43fe
parent 3116 8bf500eb01d6
child 4096 871ff503c23e
permissions -rw-r--r--
ignore some internal warnings prevent the display of warnings caused by the definition of deprecated functions so that the output of cubicweb-ctl is not polluted.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3116
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     1
@echo off
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     2
rem = """-*-Python-*- script
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     3
rem -------------------- DOS section --------------------
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     4
rem You could set PYTHONPATH or TK environment variables here
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     5
python -x "%~f0" %*
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     6
goto exit
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     7
 
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     8
"""
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
     9
# -------------------- Python section --------------------
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    10
from cubicweb.cwctl import run
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    11
import sys
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    12
run(sys.argv[1:])
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    13
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    14
DosExitLabel = """
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    15
:exit
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    16
rem """
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    17
8bf500eb01d6 two convenience files
Aurélien Campéas
parents:
diff changeset
    18