MCPcopy Index your code
hub / github.com/USArmyResearchLab/Dshell / get_output_modules

Function get_output_modules

dshell/dshelllist.py:50–60  ·  view source on GitHub ↗

Generate a list of all available output modules under an output_module_path

(output_module_path)

Source from the content-addressed store, hash-verified

48
49
50def 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

Callers 1

main_command_lineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected