py-demandimport
py-demandimport copied to clipboard
Replace modules with correctly loaded modules after loading
Currently, even after the actual loading of the library has taken place the __repr__ of the proxy is returned.
Would it be a solution to replace the proxy module with the actual module once it has been loaded?
How would you suggest achieving this?
Wasn't there some sort of table storing module objects in Python somewhere in os or sys modules?