mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
Add support for Adw.AlertDialog
This commit is contained in:
parent
6522421251
commit
ba8b492134
13 changed files with 136 additions and 40 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue