Blame view

pyrosrun.bat 459 Bytes
42983157   haribo   #3443 pyrosrun sc...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off

set NEEDED_ARGUMENT=One argument is needed. Possible arguments : [runserver|test]
set INVALID_ARGUMENT=Invalid argument. Possible arguments : [runserver|test]

private/venv_py35_pyros/Scripts/activate

set argC=0
for %%x in (%*) do Set /A argC+=1


if %argC% NEQ 1 (
	echo %NEEDED_ARGUMENT%
	pause
	exit
)

cd src/

if %1%==server (
	python manage.py runserver
) else if %1%==test(
	python manage.py test
) else (
	echo %INVALID_ARGUMENT%
)

pause