From 51ab5d1094ba8f3b4598d45b2ec53668b62ed09c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Touceda?= Date: Thu, 11 Jul 2013 14:00:23 -0300 Subject: Set program name for python to act as we expect it to --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(full_path.string().c_str())); + const char *prog_name = "leap-client"; + Py_SetProgramName(const_cast(prog_name)); Py_Initialize(); py::object main_module = py::import("__main__"); -- cgit v1.2.3