aboutsummaryrefslogtreecommitdiff
path: root/scripts/theme-studio/app_inventory.py
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-14 00:08:03 -0500
committerCraig Jennings <c@cjennings.net>2026-06-14 00:08:03 -0500
commitf0219296bd5810eb016c264105f04b345cf47281 (patch)
tree2a80edbce85dceeead2fa22d1c85ef56110baba5 /scripts/theme-studio/app_inventory.py
parentb5f433b64de7fec54f2d2c5637c4f16c860d65e5 (diff)
downloaddotemacs-f0219296bd5810eb016c264105f04b345cf47281.tar.gz
dotemacs-f0219296bd5810eb016c264105f04b345cf47281.zip
Update theme studio palette workflow
Diffstat (limited to 'scripts/theme-studio/app_inventory.py')
-rw-r--r--scripts/theme-studio/app_inventory.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/theme-studio/app_inventory.py b/scripts/theme-studio/app_inventory.py
index 0c55a5d4..e491b8ab 100644
--- a/scripts/theme-studio/app_inventory.py
+++ b/scripts/theme-studio/app_inventory.py
@@ -45,7 +45,8 @@ def add_inventory_apps(apps: dict[str, Any], inventory_path: str) -> dict[str, A
"""Add generic editable apps for installed packages not covered by bespoke previews."""
if not os.path.exists(inventory_path):
return apps
- inventory = json.load(open(inventory_path))
+ with open(inventory_path) as src:
+ inventory = json.load(src)
for pkg in sorted(inventory):
if pkg in BESPOKE_APPS or pkg in apps:
continue