Add support for Adw.AlertDialog

This commit is contained in:
Sonny Piers 2024-01-28 02:03:29 +01:00
parent 6522421251
commit ba8b492134
13 changed files with 136 additions and 40 deletions

View file

@ -79,7 +79,12 @@ def get_available_namespaces() -> T.List[T.Tuple[str, str]]:
]
for search_path in search_paths:
for filename in os.listdir(search_path):
try:
filenames = os.listdir(search_path)
except FileNotFoundError:
continue
for filename in filenames:
if filename.endswith(".typelib"):
namespace, version = filename.removesuffix(".typelib").rsplit("-", 1)
_available_namespaces.append((namespace, version))