- PyRun_SimpleString("import sys");
- PyRun_SimpleString("sys.path.append('" SCRIPTDIR "')");
- PyRun_SimpleString(const_cast<char*>(((std::string)"sys.path.append('" +
- otk::expandTilde("~/.openbox/python") +
- "')").c_str()));
+// PyRun_SimpleString("import sys");
+printf("SCRIPTDIR=%s\n", SCRIPTDIR);
+printf("1 getenv(DISPLAY)=%s\n", getenv("DISPLAY"));
+ path = "sys.path";
+printf("2 getenv(DISPLAY)=%s\n", getenv("DISPLAY"));
+ path = "sys.path.append('";
+printf("3 getenv(DISPLAY)=%s\n", getenv("DISPLAY"));
+ path += SCRIPTDIR;
+ path += "')";
+ PyRun_SimpleString(const_cast<char*>(path.c_str()));
+ path = "sys.path.append('";
+ path += otk::expandTilde("~/.openbox/python");
+ path += "')";
+ PyRun_SimpleString(const_cast<char*>(path.c_str()));