Skip to content

Commit fbe3519

Browse files
committed
fixed bundled modules
1 parent 53f7dd0 commit fbe3519

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎aw_qt/manager.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ def _discover_modules_bundled() -> List[str]:
5656
matches = glob(os.path.join(path, "aw-*"))
5757
for match in matches:
5858
if os.path.isfile(match) and os.access(match, os.X_OK):
59-
modules.append(match)
59+
name = os.path.basename(match)
60+
modules.append(name)
6061
else:
6162
logger.warning("Found matching file but was not executable: {}".format(path))
6263

@@ -171,6 +172,7 @@ def discover_modules(self):
171172
}
172173
found_modules |= set(_discover_modules_bundled())
173174
found_modules |= set(_discover_modules_system())
175+
found_modules ^= {"aw-qt"} # Exclude self
174176

175177
for m_name in found_modules:
176178
if m_name not in self.modules:

0 commit comments

Comments
 (0)