aboutsummaryrefslogtreecommitdiffstats
path: root/run.bat
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-09-19 15:33:11 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-09-19 15:33:11 +0530
commita4e01da27c08e43a67b2618ad1e71c1f8f86d5cd (patch)
tree5b8f407dbb7e9d1ab2106ac0cc8564897e7a2098 /run.bat
downloadyt-local-master.tar.gz
yt-local-master.tar.bz2
yt-local-master.zip
youtube fronendHEADmaster
Diffstat (limited to 'run.bat')
-rw-r--r--run.bat18
1 files changed, 18 insertions, 0 deletions
diff --git a/run.bat b/run.bat
new file mode 100644
index 0000000..26fb963
--- /dev/null
+++ b/run.bat
@@ -0,0 +1,18 @@
+@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