define the openbox variable
This commit is contained in:
parent
375156c112
commit
27193f659d
1 changed files with 2 additions and 3 deletions
|
@ -148,9 +148,8 @@ Openbox::Openbox(int argc, char **argv)
|
||||||
Py_Initialize();
|
Py_Initialize();
|
||||||
init_otk();
|
init_otk();
|
||||||
init_openbox();
|
init_openbox();
|
||||||
// i wish...
|
PyRun_SimpleString("from _otk import *; from _openbox import *;");
|
||||||
//PyRun_String("from _otk import *; from _openbox import *;", Py_file_input,
|
PyRun_SimpleString("openbox = Openbox_instance()");
|
||||||
// Py_None, Py_None);
|
|
||||||
FILE *rcpyfd = fopen(_scriptfilepath.c_str(), "r");
|
FILE *rcpyfd = fopen(_scriptfilepath.c_str(), "r");
|
||||||
if (!rcpyfd) {
|
if (!rcpyfd) {
|
||||||
printf("failed to load python file %s\n", _scriptfilepath.c_str());
|
printf("failed to load python file %s\n", _scriptfilepath.c_str());
|
||||||
|
|
Loading…
Reference in a new issue