[go: up one dir, main page]

Menu

[e13c71]: / sppas.bat  Maximize  Restore  History

Download this file

101 lines (77 with data), 3.1 kB

 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
GOTO EndHeader
"""
..
---------------------------------------------------------------------
___ __ __ __ ___
/ | \ | \ | \ / the automatic
\__ |__/ |__/ |___| \__ annotation and
\ | | | | \ analysis
___/ | | | | ___/ of speech
http://www.sppas.org/
Use of this software is governed by the GNU Public License, version 3.
SPPAS is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
SPPAS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SPPAS. If not, see <http://www.gnu.org/licenses/>.
This banner notice must not be removed.
---------------------------------------------------------------------
sppas.bat
~~~~~~~~~~~~~
:author: Brigitte Bigi
:organization: Laboratoire Parole et Langage, Aix-en-Provence, France
:contact: contact@sppas.org
:license: GPL, v3
:copyright: Copyright (C) 2011-2020 Brigitte Bigi
:summary: SPPAS for Windows.
"""
:EndHeader
@echo off
SET PYTHONIOENCODING=UTF-8
WHERE pythonw3.exe >nul 2>nul
if %ERRORLEVEL% EQU 0 (
start "" pythonw3.exe -m sppas
exit
) else (
WHERE python3.exe >nul 2>nul
if %ERRORLEVEL% NEQ 9009 (
color 1E
start "" python3.exe -m sppas
exit
) else (
color 04
if exist C:\Python27\pythonw.exe (
start "" C:\Python27\pythonw.exe .\sppas\bin\sppasgui.py
exit
) else (
if exist C:\Python27\python.exe (
start "" C:\Python27\python.exe .\sppas\bin\sppasgui.py
exit
) else (
REM Perhaps python3 was installed with name "python"
WHERE python.exe >nul 2>nul
if %ERRORLEVEL% NEQ 9009 (
python.exe .\sppas\bin\checkpy.py
if %ERRORLEVEL% NEQ 9009 (
start "" python.exe -m sppas
exit
) else (
start "" python.exe .\sppas\bin\sppasgui.py
exit
)
) else (
color 4E
echo Python is not an internal command of your operating system.
echo Install it first with the Windows Store or from http://www.python.org.
)
)
)
)
)
REM Close the windows which was opened
timeout /t 20