(02-07-2022, 09:04 PM)LunaMoo Wrote: There's nothing special with this homebrew, I wrote many times around the forums and github how to maximize your chances to run all of the nasty PSP homebrew, ie. here:
https://github.com/hrydgard/ppsspp/issue...-552916267
In this case, if you can't even run the test demo, you probably ran it from outside of it's proper folder(which has to be under PSP/GAME directory) or simply didn't provided it with the demo script.py or named it incorrectly.
Hi LunaMoo,
Thanks for your message.
I've done more tests and here my status:
- My code runs very well in the real PSP. It's not easy to upload and test on it.
- This sample program is too small to be a real python code. There is no imports of standard libraries. With my code, the module "os" cannot be imported.... why ? I didn't found yet the solution.
- I've seen that a text file is used as log for the error. I'm trying to correct my code.
Edit: I've found the issue !!
I need to unzip the python.zip that is used in the real PSP, and set the folder in the python path, with:
import sys
# For PPSSPP
sys.path.insert(0,'.')
sys.path.insert(0,'./python')
import my_lib ## now, it will work with the '.' added
import os ## now, it will work with the './python' added
...