Sfoglia il codice sorgente

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 anni fa
parent
commit
c5b58211da
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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;