We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8b4909 commit e70a44dCopy full SHA for e70a44d
idom/client/manage.py
@@ -37,13 +37,13 @@ def web_module_exists(package_name: str) -> bool:
37
def web_module_names() -> Set[str]:
38
names = []
39
for pth in WEB_MODULES_DIR.glob("**/*.js"):
40
- for rel_pth in pth.relative_to(WEB_MODULES_DIR):
41
- if Path("common") not in rel_pth.parents:
42
- continue
43
- module_path = str(rel_pth.as_posix())
44
- if module_path.endswith('.js'):
45
- module_path = module_path[:-3]
46
- names.append(module_path)
+ rel_pth = pth.relative_to(WEB_MODULES_DIR)
+ if Path("common") in rel_pth.parents:
+ continue
+ module_path = str(rel_pth.as_posix())
+ if module_path.endswith('.js'):
+ module_path = module_path[:-3]
+ names.append(module_path)
47
return set(names)
48
49
0 commit comments