forked from p15670423/monkey
Removed bad documentation
This commit is contained in:
parent
b0d77e3c21
commit
c6216325b6
|
@ -8,10 +8,6 @@ LOG = logging.getLogger(__name__)
|
|||
|
||||
|
||||
def _get_candidate_files(base_package_file):
|
||||
"""
|
||||
Gets all files under current directory(/actions)
|
||||
:return: list of all files without .py ending
|
||||
"""
|
||||
files = glob.glob(join(dirname(base_package_file), "*.py"))
|
||||
return [basename(f)[:-3] for f in files if isfile(f) and not f.endswith('__init__.py')]
|
||||
|
||||
|
@ -23,6 +19,7 @@ def get_instances(base_package_name, base_package_file, parent_class):
|
|||
"""
|
||||
objects = []
|
||||
candidate_files = _get_candidate_files(base_package_file)
|
||||
LOG.info("looking for classes of type {} in {}".format(parent_class.__name__, base_package_name))
|
||||
# Go through all of files
|
||||
for file in candidate_files:
|
||||
# Import module from that file
|
||||
|
|
Loading…
Reference in New Issue