author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Mon, 17 May 2010 17:31:29 +0200 | |
branch | stable |
changeset 5531 | 0ce62ac0d1d7 |
parent 5499 | 2a5cc708c2a0 |
permissions | -rw-r--r-- |
3116 | 1 |
@echo off |
2 |
rem = """-*-Python-*- script |
|
3 |
rem -------------------- DOS section -------------------- |
|
4 |
rem You could set PYTHONPATH or TK environment variables here |
|
5 |
python -x "%~f0" %* |
|
6 |
goto exit |
|
7 |
||
8 |
""" |
|
9 |
# -------------------- Python section -------------------- |
|
4096 | 10 |
import sys |
5499
2a5cc708c2a0
fixed bug of non-normalized path under Windows, that broke the reload mechanism
egazoni
parents:
4096
diff
changeset
|
11 |
from os.path import join, dirname, normpath |
2a5cc708c2a0
fixed bug of non-normalized path under Windows, that broke the reload mechanism
egazoni
parents:
4096
diff
changeset
|
12 |
sys.path.insert(0, normpath(join(dirname(__file__), '..', '..'))) |
3116 | 13 |
from cubicweb.cwctl import run |
14 |
run(sys.argv[1:]) |
|
15 |
||
16 |
DosExitLabel = """ |
|
17 |
:exit |
|
18 |
rem """ |
|
19 |
||
20 |