File: aap.bat

package info (click to toggle)
aap 1.072-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 4,976 kB
  • ctags: 2,160
  • sloc: python: 15,113; makefile: 62; sh: 13
file content (28 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (2)
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
rem Simplistic script to execute aap.

if NOT .%PYTHON%==. goto havepython
set PYTHON=python
:havepython
set AAPDIR=%~dp0

if .%OS%==.Windows_NT goto ntaction

rem collect the arguments in AAPARGS for Win95
set AAPARGS=
:loopstart
if .%1==. goto loopend
set AAPARGS=%AAPARGS% %1
shift
goto loopstart

:loopend
%PYTHON% "%AAPDIR%\Main.py" %AAPARGS%
goto eof

:ntaction
rem for WinNT we can use %*
%PYTHON% "%AAPDIR%\Main.py" %*

:eof
set AAPARGS=