X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fpython.cc;h=27434074700d3360b9a888dba71375091ee97c34;hb=e2069b5792a80ba8ccfd03c9d1bdd5e364dbee10;hp=28369e9a2e1e1d5d8b62d89f926b192369cb4ba1;hpb=536d54f9b800668a835fd2c8b9c7d518eab0cb13;p=chaz%2Fopenbox diff --git a/src/python.cc b/src/python.cc index 28369e9a..27434074 100644 --- a/src/python.cc +++ b/src/python.cc @@ -44,14 +44,14 @@ void python_init(char *argv0) void python_destroy() { - Py_DECREF(obdict); + Py_Finalize(); } bool python_exec(const std::string &path) { FILE *rcpyfd = fopen(path.c_str(), "r"); if (!rcpyfd) { - printf("failed to load python file %s\n", path.c_str()); + printf("Failed to load python file %s\n", path.c_str()); return false; } PyRun_SimpleFile(rcpyfd, const_cast(path.c_str()));