Generate a list of all available output modules under an output_module_path
(output_module_path)
| 48 | |
| 49 | |
| 50 | def get_output_modules(output_module_path): |
| 51 | """ |
| 52 | Generate a list of all available output modules under an output_module_path |
| 53 | """ |
| 54 | modules = [] |
| 55 | for f in iglob("{}/*.py".format(output_module_path)): |
| 56 | name = os.path.splitext(os.path.basename(f))[0] |
| 57 | if name != '__init__' and name != 'output': |
| 58 | # Ignore __init__ and the base output.py module |
| 59 | modules.append(name) |
| 60 | return modules |