bin/cubicweb-ctl.bat
author Julien Jehannet <julien.jehannet@logilab.fr>
Fri, 28 Jan 2011 15:23:47 +0100
branchstable
changeset 6918 9e607157d4cf
parent 5499 2a5cc708c2a0
permissions -rw-r--r--
[cw-ctl] use default `mkdtemp()` behaviour to store backup file internally When using `mkdtemp(dir=instbkdir)`, a dedicated system user which hasn't the permissions to write in /var/lib/cubicweb/instances/$INSTANCE/backup will not be able to run the db-dump command.

@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 --------------------
import sys
from os.path import join, dirname, normpath
sys.path.insert(0, normpath(join(dirname(__file__), '..', '..')))
from cubicweb.cwctl import run
run(sys.argv[1:])

DosExitLabel = """
:exit
rem """