aboutsummaryrefslogtreecommitdiffstats
path: root/Launcher/launcher_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Launcher/launcher_main.cpp')
-rw-r--r--Launcher/launcher_main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Launcher/launcher_main.cpp b/Launcher/launcher_main.cpp
index 09a9d3969f..c0b0c49755 100644
--- a/Launcher/launcher_main.cpp
+++ b/Launcher/launcher_main.cpp
@@ -42,6 +42,9 @@ int main(int argc, char *argv[]) {
// android::base::GetExecutablePath() also handles for Darwin/Windows.
std::string executable_path = android::base::GetExecutablePath();
+ // Set the equivalent of PYTHONHOME internally.
+ Py_SetPythonHome(strdup(executable_path.c_str()));
+
int new_argc = argc + 1;
char **new_argv = reinterpret_cast<char**>(calloc(new_argc, sizeof(*argv)));