mirror of
https://github.com/ful1e5/Bibata_Cursor.git
synced 2025-05-18 09:04:38 -04:00
📦 Absolute paths and refactoring
This commit is contained in:
parent
d5be4ddb49
commit
b533b221df
2 changed files with 10 additions and 9 deletions
|
@ -55,6 +55,7 @@ def get_config(bitmaps_dir, **kwargs) -> Dict[str, Any]:
|
|||
x_sizes.append(to_tuple(size))
|
||||
|
||||
png_provider = PNGProvider(bitmaps_dir)
|
||||
|
||||
config: Dict[str, Any] = {}
|
||||
|
||||
for key, item in X_CURSORS_CFG.items():
|
||||
|
@ -63,12 +64,13 @@ def get_config(bitmaps_dir, **kwargs) -> Dict[str, Any]:
|
|||
hotspot: Tuple[int, int] = (x_hot, y_hot)
|
||||
|
||||
delay: int = int(item.get("delay", X_DELAY))
|
||||
png = png_provider.get(key)
|
||||
if not png:
|
||||
pngs = png_provider.get(key)
|
||||
|
||||
if not pngs:
|
||||
raise FileNotFoundError(f"{key} not found in {bitmaps_dir}")
|
||||
|
||||
data = {
|
||||
"png": png,
|
||||
"png": pngs,
|
||||
"x_sizes": x_sizes,
|
||||
"hotspot": hotspot,
|
||||
"delay": delay,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue