Entry:AppPkg\Applications\Python\PyMod-2.7.2\Modules\main.c -> Py_Main.
Import Entry:AppPkg\Applications\Python\PyMod-2.7.2\Python\import.c -> _PyImport_Init.
Todo
1. include stdio.h
2. Add timestamp in _PyImport_Init function.
3. PyMod-2.7 or Python-2.7.2? Use both two folders.
PyMod-2.7 is right location, we can confirm it by reading "PythonCore.inf" file.
Hint
The importing time is double?﹝傳說中的油漆工演算法?﹞
2019/10/14 更新
After inserting timestamp, we can confirm the problem is in "run_mod" function("Python\Python-2.7.2\pythonrun.c -> PyRun_FileExFlags function"). Unless we prepare to understand python completely, we can't do anything now.
沒有留言:
張貼留言