renpy-build icon indicating copy to clipboard operation
renpy-build copied to clipboard

Modernise built-in submodule importer

Open mal opened this issue 1 year ago • 1 comments

The deprecated imp module has been removed in Python 3.12.

This change works by implementing the MetaPathFinder API, and returning a ModuleSpec which tells the other import machinery to use the BuiltinImporter provided as part of Python proper to handle loading of these modules.

Tested with Ren'Py 8.1.3.

mal avatar Oct 08 '23 11:10 mal

@renpytom it'd be good to merge this before work is started on the 3.12 upgrade.

mal avatar Sep 13 '24 19:09 mal