all repos — openbox @ 27193f659d6badda0ebdb456b61fb55f21f8e4c5

openbox fork - make it a bit more like ryudo

define the openbox variable
Dana Jansens danakj@orodu.net
commit

27193f659d6badda0ebdb456b61fb55f21f8e4c5

parent

375156c1125cfad326642d7b5882746f0b9c3554

1 files changed, 2 insertions(+), 3 deletions(-)

jump to
M src/openbox.ccsrc/openbox.cc

@@ -148,9 +148,8 @@ Py_SetProgramName(argv[0]);

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());