This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
| 1 |
#include <Python.h> |
| 2 |
|
| 3 |
char* launchscript = "\ |
| 4 |
import sys;\ |
| 5 |
sys.path.insert(0,'python25.zip');\ |
| 6 |
sys.path.insert(0,'site-packages.zip');\ |
| 7 |
sys.path.insert(0,'shared');\ |
| 8 |
sys.argv.append('-c');\ |
| 9 |
sys.argv.append('config');\ |
| 10 |
execfile('mypaint');\ |
| 11 |
"; |
| 12 |
|
| 13 |
int main(int argc, char *argv[]) |
| 14 |
{ |
| 15 |
Py_Initialize(); |
| 16 |
PySys_SetArgv(argc, argv); |
| 17 |
PyRun_SimpleString(launchscript); |
| 18 |
Py_Finalize(); |
| 19 |
return 0; |
| 20 |
} |