Functions that affect Python Initialization. More...
Functions | |
| void | REPY_PreInitAddSysPath (const unsigned char *nrm_file_path) |
| Instruct REPY to add a path to Python's module search path during initialization. | |
| REPY_InterpreterIndex | REPY_PreInitRegisterSubinterpreter () |
| Registers a new Python subinterpreter to be created on initialization, and return a REPY_InterpreterIndex corresponding to it. | |
Functions that affect Python Initialization.
| void REPY_PreInitAddSysPath | ( | const unsigned char * | nrm_file_path | ) |
Instruct REPY to add a path to Python's module search path during initialization.
If you pass the path of an NRM (such as the path to the NRM for this mod obtained via recomp_get_mod_file_path), REPY treat the NRM as a .zip file and will be able to search it for Python modules.
Python module files and folders can be added to the NRM by including them under the additional_files section of the mod.toml
| nrm_file_path |
| REPY_InterpreterIndex REPY_PreInitRegisterSubinterpreter | ( | ) |
Registers a new Python subinterpreter to be created on initialization, and return a REPY_InterpreterIndex corresponding to it.
Note that initializing a subinterpreter is expensive performance-wise, and can add a slight delay on startup.