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.
1 parent ba88995 commit 4078647Copy full SHA for 4078647
1 file changed
aw_qt/manager.py
@@ -69,10 +69,11 @@ def _discover_modules_system() -> List[str]:
69
search_paths = os.environ["PATH"].split(":")
70
modules = []
71
for path in search_paths:
72
- files = os.listdir(path)
73
- for filename in files:
74
- if "aw-" in filename:
75
- modules.append(filename)
+ if os.path.isdir(path):
+ files = os.listdir(path)
+ for filename in files:
+ if "aw-" in filename:
76
+ modules.append(filename)
77
78
logger.info("Found system modules: {}".format(set(modules)))
79
return modules
0 commit comments