RecompExternalPython for N64Recompiled 2.0.0
Loading...
Searching...
No Matches

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.

Detailed Description

Functions that affect Python Initialization.

Function Documentation

◆ REPY_PreInitAddSysPath()

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

Parameters
nrm_file_path

◆ REPY_PreInitRegisterSubinterpreter()

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.

Returns
the index that will correspond to the new interpreter.