yt-local/run.bat
James Taylor cd4a2fb0eb run.bat: Allow command line usage from any directory
Set the youtube-local directory as the working directory, and use setlocal
so it doesn't affect the shell the command is being run from.
2020-01-30 18:24:23 -08:00

19 lines
524 B
Batchfile

@echo off
REM https://stackoverflow.com/a/25719250
REM setlocal makes sure changing directory only applies inside this bat file,
REM and not in the command shell.
setlocal
REM So this bat file can be called from a different working directory.
REM %~dp0 is the directory with this bat file.
cd /d "%~dp0"
REM This is so brotli and gevent search in the python directory for the
REM visual studio c++ runtime dlls
set PATH=.\python;%PATH%
.\python\python.exe -I .\server.py
echo Press any key to quit...
PAUSE > nul