[Python] How to let Python runtime load its own Library ZIP file from memory during the...

Discussão em 'Python' iniciado por Stack, Junho 2, 2025.

  1. Stack

    Stack Membro Participativo

    I am using the Python C API and want to embed Python runtime into my app. The first thing is how to let Python load everything from a memory block, which stores the Zipped Python standard library files(the STD folder). I just found out when calling Py_InitializeFromConfig(), Python always seems to load some encoding and decoding modules from disk. Is it possible to redirect all disk reading to a reading from that memory block?

    Continue reading...

Compartilhe esta Página