@@ -88,10 +88,11 @@ void FUnrealEnginePythonModule::UESetupPythonInterpreter(bool verbose) {
8888
8989 PyObject *py_path = PyDict_GetItemString (py_sys_dict, " path" );
9090
91- char *zip_path = TCHAR_TO_UTF8 (*FPaths::ConvertRelativePathToFull (FPaths::Combine (PROJECT_CONTENT_DIR, FString (" ue_python.zip" ))));
91+ /* char *zip_path = TCHAR_TO_UTF8(*FPaths::ConvertRelativePathToFull(FPaths::Combine(PROJECT_CONTENT_DIR, FString("ue_python.zip"))));
9292 PyObject *py_zip_path = PyUnicode_FromString(zip_path);
93- PyList_Insert (py_path, 0 , py_zip_path);
93+ PyList_Insert(py_path, 0, py_zip_path);*/
9494
95+ // Project content directory
9596 char *scripts_path = TCHAR_TO_UTF8 (*FPaths::ConvertRelativePathToFull (FPaths::Combine (PROJECT_CONTENT_DIR, FString (" Scripts" ))));
9697 PyObject *py_scripts_path = PyUnicode_FromString (scripts_path);
9798 PyList_Insert (py_path, 0 , py_scripts_path);
@@ -102,7 +103,7 @@ void FUnrealEnginePythonModule::UESetupPythonInterpreter(bool verbose) {
102103 PyObject *py_plugin_scripts_path = PyUnicode_FromString (TCHAR_TO_UTF8 (*ScriptsPath));
103104 PyList_Insert (py_path, 0 , py_plugin_scripts_path);
104105
105- /* add the plugin paths - windows only */
106+ /* add the plugin Binaries and Win64 paths - windows only */
106107 FString PythonHome = FPaths::ConvertRelativePathToFull (FPaths::Combine (PluginRoot, FString (" Binaries/Win64" )));
107108 char *python_path = TCHAR_TO_UTF8 (*PythonHome);
108109 char *site_path = TCHAR_TO_UTF8 (*FPaths::Combine (FString (PythonHome), FString (" Lib/site-packages" )));
@@ -284,7 +285,8 @@ void FUnrealEnginePythonModule::StartupModule()
284285 }
285286 else {
286287 // TODO gracefully manage the error
287- unreal_engine_py_log_error ();
288+ UE_LOG (LogPython, Warning, TEXT (" ue_site not found (if you don't use the startup file ignore this warning)" ));
289+ // unreal_engine_py_log_error();
288290 }
289291
290292 // release the GIL
0 commit comments