Ver código fonte

deps/obs-scripting: Prevent potential python startup issues

Prevents Python from automatically trying to load from PATH on startup
on windows.  The user should set their Python 3 path themselves.
jp9000 7 anos atrás
pai
commit
c5b58211da
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      deps/obs-scripting/obs-scripting.c

+ 2 - 0
deps/obs-scripting/obs-scripting.c

@@ -150,7 +150,9 @@ bool obs_scripting_load(void)
 
 #if COMPILE_PYTHON
 	obs_python_load();
+#ifndef _WIN32 /* don't risk python startup load issues on windows */
 	obs_scripting_load_python(NULL);
+#endif
 #endif
 
 	scripting_loaded = true;