Apr-14-2024, 02:34 PM
Quote:Maybe the loader I reinstanciate needs to be told that 'top' is a package, not a module?
I thought you were saying top.py is a module in some path of yours.
If top is a package, maybe ending in .whl, it needs to be installed, presumably with pip, as far as I know!
importlib will import modules "on-the-fly" I don't know if importlib can install packages, them import them. Read the docs.