Skip to content

Commit bdfa609

Browse files
committed
remove some paths
-also downgrade ue_site error to warning
1 parent 5171cfb commit bdfa609

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Source/UnrealEnginePython/Private/UnrealEnginePython.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

UnrealEnginePython.uplugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"FileVersion": 3,
33
"Version": 1,
4-
"VersionName": "1.4.1",
4+
"VersionName": "1.4.2",
55
"FriendlyName": "UnrealEnginePython",
66
"Description": "Embed a Python VM in your project",
77
"Category": "Scripting Languages",

0 commit comments

Comments
 (0)