1@REM Copyright 2018-2024 Mickaël Schoentgen & contributors
2@REM Copyright 2012-2018 Google, Inc.
3@REM Copyright 2011-2012 Yesudeep Mangalapilly
4@REM Copyright 2001-2010 The SCons Foundation
5@REM watchmedo.bat - Wrapper .bat file for the watchmedo Python script.
6
7@echo off
8set SCRIPT_ERRORLEVEL=
9if "%OS%" == "Windows_NT" goto WinNT
10
11@REM Windows 9x/Me you better not have more than 9 arguments.
12python -c "from watchdog import watchmedo; watchmedo.main()" %1 %2 %3 %4 %5 %6 %7 %8 %9
13@REM No way to set exit status of this script for 9x/Me
14goto endscript
15
16@REM Windows NT+
17:WinNT
18setlocal
19set path=%~dp0;%~dp0..;%path%
20python -c "from watchdog import watchmedo; watchmedo.main()" %*
21endlocal & set SCRIPT_ERRORLEVEL=%ERRORLEVEL%
22
23if not "%COMSPEC%" == "%SystemRoot%\system32\cmd.exe" goto returncode
24if errorlevel 9009 echo You do not have python in your PATH environment variable.
25goto endscript
26
27:returncode
28exit /B %SCRIPT_ERRORLEVEL%
29
30:endscript
31call :returncode %SCRIPT_ERRORLEVEL%
32