all you will need to do is
klass = globals()["class_name"] instance = klass()
from: https://stackoverflow.com/questions/3451779/how-to-dynamically-create-an-instance-of-a-class-in-python
No comments:
Post a Comment