PYTHONPATH and embedding python

Paul Miller paul at fxtech.com
Wed Oct 10 17:43:02 EDT 2001


> Does anyone have any suggestions?  Thanks.

This works too:

::PyRun_SimpleString("import sys\n");
// loop through the paths you want to add
::PyRun_SimpleString("sys.path.insert(0, \"<YOUR_PATH_HERE>\")\n");



More information about the Python-list mailing list