From 27193f659d6badda0ebdb456b61fb55f21f8e4c5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 25 Dec 2002 00:30:01 +0000 Subject: [PATCH] define the openbox variable --- src/openbox.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/openbox.cc b/src/openbox.cc index 7a025242..aa61a313 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -148,9 +148,8 @@ Openbox::Openbox(int argc, char **argv) Py_Initialize(); init_otk(); init_openbox(); - // i wish... - //PyRun_String("from _otk import *; from _openbox import *;", Py_file_input, - // Py_None, Py_None); + PyRun_SimpleString("from _otk import *; from _openbox import *;"); + PyRun_SimpleString("openbox = Openbox_instance()"); FILE *rcpyfd = fopen(_scriptfilepath.c_str(), "r"); if (!rcpyfd) { printf("failed to load python file %s\n", _scriptfilepath.c_str()); -- 2.39.2