Original Post
Hey all, I'm working on a game and while the game engine is written in C I have planned to write most of the gameplay functionality in python. It works well, except that I'm a bit unsure on how to make python find any python packages I have written. I have no problem making it find the C extension it needs in order to interact with the game engine though. I have looked into several solutions such as PySys_SetPath() and Py_SetProgramName() but none of them seems to help in solving this problem. Py_SetProgramName() seems to be the function that is meant for this and I call it before intializing python, with the directory where the package can be found (and yes, I define the package with a __init__.py file) relative to the games path. Py_GetPath()'s return value seems to not be affected at all no matter what path I feed Py_SetPrgoramName(). Any help in explaining how to solve this would be much appreciated!