forked from hashdist/hashdist
-
Notifications
You must be signed in to change notification settings - Fork 0
Python
Dag Sverre Seljebotn edited this page Mar 31, 2012
·
5 revisions
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...