import module as name

I have edited your module to add this functionality and attached the new version.

importer.py (1.99 KB)

···

On Thursday, July 23, 2015 at 7:19:12 AM UTC-4, Boštjan Mejak wrote:

Using my importer module, how can I make the function tryToImport() accept the ‘as name’ part of the import? Does importlib.import_module() even have such functionality?