Set up the build logs to use our fake build logs on test and local.
This commit is contained in:
parent
580bb152fe
commit
bcb993a914
8 changed files with 47 additions and 11 deletions
7
util/dynamic.py
Normal file
7
util/dynamic.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
def import_class(module_name, class_name):
|
||||
""" Import a class given the specified module name and class name. """
|
||||
klass = __import__(module_name)
|
||||
class_segments = class_name.split('.')
|
||||
for segment in class_segments:
|
||||
klass = getattr(klass, segment)
|
||||
return klass
|
Reference in a new issue