]> Dogcows Code - chaz/openbox/commitdiff
define the openbox variable
authorDana Jansens <danakj@orodu.net>
Wed, 25 Dec 2002 00:30:01 +0000 (00:30 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 25 Dec 2002 00:30:01 +0000 (00:30 +0000)
src/openbox.cc

index 7a025242ee7b359e06bbddbd61dc91b11cc9fe47..aa61a3139c379e1cb18629f5b15df9a0b6ec117f 100644 (file)
@@ -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());
This page took 0.022129 seconds and 4 git commands to generate.