We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
map
1 parent 774edb4 commit 13e860eCopy full SHA for 13e860e
zulip_bots/zulip_bots/provision.py
@@ -12,9 +12,7 @@
12
def get_bot_paths() -> Iterator[str]:
13
current_dir = os.path.dirname(os.path.abspath(__file__))
14
bots_dir = os.path.join(current_dir, "bots")
15
- bots_subdirs = map(lambda d: os.path.abspath(d), glob.glob(bots_dir + "/*"))
16
- paths = filter(lambda d: os.path.isdir(d), bots_subdirs)
17
- return paths
+ return (os.path.abspath(d) for d in glob.glob(bots_dir + "/*/"))
18
19
20
def provision_bot(path_to_bot: str, force: bool) -> None:
0 commit comments