]> Dogcows Code - chaz/openbox/commitdiff
try appending our shit to the path, and not import config in the cc
authorDana Jansens <danakj@orodu.net>
Fri, 31 Jan 2003 06:01:16 +0000 (06:01 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 31 Jan 2003 06:01:16 +0000 (06:01 +0000)
otk/renderstyle.cc
src/python.cc

index 8afb114182af2b504d1503a95b76cbdef4440fb9..330870c6c7ad04212a741b9eebfe73449608131c 100644 (file)
@@ -15,8 +15,8 @@ RenderStyle::RenderStyle(int screen, const std::string &stylefile)
     _file(stylefile)
 {
 // pick one..
-#define FIERON
-//#define MERRY
+//#define FIERON
+#define MERRY
 
 #ifdef FIERON
   _root_color = new RenderColor(_screen, 0x272a2f);
index 2a9a912a2b583bd457b9000bd99078a528bb92a6..2144ab4a6e1a7c6e433043ccbe43d7b735bb9b45 100644 (file)
@@ -26,13 +26,13 @@ void python_init(char *argv0)
   // initialize the C python module
   init_otk();
   init_ob();
-  // include the openbox directories for python scripts in the sys path
+  // prepend the openbox directories for python scripts to the sys path
   PyRun_SimpleString("import sys");
-  PyRun_SimpleString(const_cast<char*>(("sys.path.append('" +
+  PyRun_SimpleString("sys.path.insert('0, " SCRIPTDIR "')");
+  PyRun_SimpleString(const_cast<char*>(("sys.path.insert(0, '" +
                                         otk::expandTilde("~/.openbox/python") +
                                         "')").c_str()));
-  PyRun_SimpleString("sys.path.append('" SCRIPTDIR "')");
-  PyRun_SimpleString("import ob; import otk; import config;");
+  PyRun_SimpleString("import ob; import otk;");// import config;");
   // set up convenience global variables
   PyRun_SimpleString("ob.openbox = ob.Openbox_instance()");
   PyRun_SimpleString("otk.display = otk.Display_instance()");
This page took 0.023338 seconds and 4 git commands to generate.