projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
375156c
)
define the openbox variable
author
Dana Jansens
<danakj@orodu.net>
Wed, 25 Dec 2002 00:30:01 +0000
(
00:30
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 25 Dec 2002 00:30:01 +0000
(
00:30
+0000)
src/openbox.cc
patch
|
blob
|
history
diff --git
a/src/openbox.cc
b/src/openbox.cc
index 7a025242ee7b359e06bbddbd61dc91b11cc9fe47..aa61a3139c379e1cb18629f5b15df9a0b6ec117f 100644
(file)
--- 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());