def get_modules():
modules = set()<EOL>cwd = os.getcwd()<EOL>for d in os.listdir(cwd):<EOL><INDENT>if d == '<STR_LIT>':<EOL><INDENT>modules.add(Module(cwd))<EOL><DEDENT>path = unipath(cwd, d)<EOL>if utils.is_module(path):<EOL><INDENT>modules.add(Module(cwd))<EOL><DEDENT><DEDENT>module_paths = get_module_paths()<EOL>for module_path in module_paths:<EOL><INDENT>for d in os.listdir(module_path):<EOL><INDENT>path = unipath(module_path, d)<EOL>if utils.is_module(path):<EOL><INDENT>modules.add(Module(path))<EOL><DEDENT><DEDENT><DEDENT>return sorted(list(modules), key=lambda x: x.name)<EOL>
Returns a list of available modules.