Created
November 10, 2021 14:48
-
-
Save z0gSh1u/b35171ad807972bf2bd8c1c6ae481059 to your computer and use it in GitHub Desktop.
`importlib` reflection import.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| readerClazz = importlib.import_module( | |
| 'reader.{}'.format(selectedReader)) # .py file level | |
| readerClazz = eval('readerClazz.{}'.format(selectedReader)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment