mirror of
https://github.com/homarr-labs/dashboard-icons.git
synced 2025-07-03 09:46:29 +02:00
9 lines
250 B
Python
9 lines
250 B
Python
import json
|
|
|
|
|
|
def load_metadata(icon_name: str) -> dict:
|
|
try:
|
|
with open(f"meta/{icon_name}.json", "r") as f:
|
|
return json.load(f)
|
|
except FileNotFoundError:
|
|
raise ValueError(f"Icon '{icon_name}' does not exist")
|