capitalization

This commit is contained in:
Dana Jansens 2003-02-02 22:00:38 +00:00
parent abaaed47f1
commit d22a6c6c04

View file

@ -45,13 +45,14 @@ void python_init(char *argv0)
void python_destroy() void python_destroy()
{ {
Py_DECREF(obdict); Py_DECREF(obdict);
Py_Finalize();
} }
bool python_exec(const std::string &path) bool python_exec(const std::string &path)
{ {
FILE *rcpyfd = fopen(path.c_str(), "r"); FILE *rcpyfd = fopen(path.c_str(), "r");
if (!rcpyfd) { 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; return false;
} }
PyRun_SimpleFile(rcpyfd, const_cast<char*>(path.c_str())); PyRun_SimpleFile(rcpyfd, const_cast<char*>(path.c_str()));