diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index ee5725a..9ad67bd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -122,6 +122,8 @@ main(int argc, char** argv) setenv("PYTHONPATH", pypath.c_str(), 1); Py_SetPythonHome(const_cast<char*>(full_path.string().c_str())); + const char *prog_name = "leap-client"; + Py_SetProgramName(const_cast<char*>(prog_name)); Py_Initialize(); py::object main_module = py::import("__main__"); |