Page MenuHome
Paste P1212

Python fix
ActivePublic

Authored by LazyDodo (LazyDodo) on Tue, Jan 14, 11:13 PM.
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 58d12527f1c..ee4b107ffb1 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -41,6 +41,7 @@
#include "DNA_genfile.h"
#include "BLI_args.h"
+#include "BLI_path_util.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "BLI_string.h"
@@ -254,6 +255,7 @@ int main(int argc,
_putenv_s("OMP_WAIT_POLICY", "PASSIVE");
# endif
+ BLI_setenv("PYTHONPATH", "");
/* Win32 Unicode Args */
/* NOTE: cannot use guardedalloc malloc here, as it's not yet initialized
* (it depends on the args passed in, which is what we're getting here!)

Event Timeline