Changes between Version 3 and Version 4 of documentation/tutorials/PythonEventSystem

Show
Ignore:
Author:
lloydw (IP: 202.68.89.228)
Timestamp:
01/09/08 11:22:05 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • documentation/tutorials/PythonEventSystem

    v3 v4  
    150150    // Initialise python 
    151151    Py_Initialize(); 
     152 
     153    // Setup the Python search path. 
     154    const char* python_path = Py_GetPath(); 
     155    char buffer[1024]; 
     156    snprintf(buffer, 1024, "../samples/invaders/python;%s", python_path); 
     157    buffer[1023] = '\0'; 
     158    PySys_SetPath(buffer); 
    152159 
    153160    // Import rocket