aboutsummaryrefslogtreecommitdiffstats
path: root/run.bat
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2020-01-30 18:17:09 -0800
committerJames Taylor <user234683@users.noreply.github.com>2020-01-30 18:17:09 -0800
commitcf507e2cd1b9c4bc4c1c1c6a88298d076defafe5 (patch)
tree9416c8a33f819042c167500ba3c5831b9bfd2a4b /run.bat
parentb2a1f4ecfb47746b274481eb2c04c904fdce64f6 (diff)
downloadyt-local-cf507e2cd1b9c4bc4c1c1c6a88298d076defafe5.tar.lz
yt-local-cf507e2cd1b9c4bc4c1c1c6a88298d076defafe5.tar.xz
yt-local-cf507e2cd1b9c4bc4c1c1c6a88298d076defafe5.zip
Add full visual c runtime to fix missing dll errors on fresh windows installs
On fresh installs, when no programs have been installed which install visual c runtime as a dependency, the dlls are not present and brotli fails to load. Bundle them in releases and make sure brotli sees them by adding their location to the path (in run.bat)
Diffstat (limited to 'run.bat')
-rw-r--r--run.bat5
1 files changed, 5 insertions, 0 deletions
diff --git a/run.bat b/run.bat
index 1a5d479..a8f6032 100644
--- a/run.bat
+++ b/run.bat
@@ -1,4 +1,9 @@
@echo off
+
+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