Reputation: 371
Currently, I am importing every class I have in a python file in my main "Runner" script. The goal is to, based on a string given, instantiate the class that has the same name as the string given.
For example:
If there is a class called 'Test':
class Test():
if the String is "Test", it will call that class.
Upvotes: 3
Views: 70