Skip to content
Dag Sverre Seljebotn edited this page Mar 31, 2012 · 5 revisions

Python

Using the system Python

We could support the system Python by having a small C wrapper changing PYTHONPATH:

#include <unistd.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
    setenv("PYTHONPATH", "/foo/bar", 1);
    execv("/usr/bin/python", argv);
}

This binary is debuggable, but gdb doesn't find debug information at startup. Hopefully we can find a way to transplant the debug information from the system Python to the Python wrapper...

Clone this wiki locally