X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fpython.cc;h=84cfff291a7abb5ca8e310678ad47332cbb2bc77;hb=1da8531a7b4eea22592b6d0760352d2a34e9b6b0;hp=28369e9a2e1e1d5d8b62d89f926b192369cb4ba1;hpb=536d54f9b800668a835fd2c8b9c7d518eab0cb13;p=chaz%2Fopenbox diff --git a/src/python.cc b/src/python.cc index 28369e9a..84cfff29 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())); @@ -189,6 +189,7 @@ PyObject *kbind(PyObject *keylist, ob::KeyContext::KC context, PyObject *func) Py_INCREF(Py_None); return Py_None; } +/* PyObject *kunbind(PyObject *keylist, PyObject *func) { if (!PyList_Check(keylist)) { @@ -217,6 +218,7 @@ PyObject *kunbind(PyObject *keylist, PyObject *func) } Py_INCREF(Py_None); return Py_None; } +*/ void kunbind_all() {