diff options
author | Tomás Touceda <chiiph@leap.se> | 2013-07-11 14:00:23 -0300 |
---|---|---|
committer | Tomás Touceda <chiiph@leap.se> | 2013-07-11 14:00:23 -0300 |
commit | 51ab5d1094ba8f3b4598d45b2ec53668b62ed09c (patch) | |
tree | 8112fd6083d67ac442083ef04bf7df177a7fc717 | |
parent | cfb1c3e9686f1a4ca5a5444f6b4396e9253b400f (diff) |
Set program name for python to act as we expect it to
-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__"); |