initial commit

This commit is contained in:
sankalp committed 2025-02-13 16:40:47 +05:45
1 parent e22e45b1ac
commit e580080a98
137 files changed
+23845 -9

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
from .animator import *
from .custom_image import *
from .icon import *
import json
import os
from fabric.utils import get_relative_path
def read_config():
config_path = get_relative_path("../config/assets/launcher.json")
with open(config_path, "r") as file:
# Load JSON data into a Python dictionary
data = json.load(file)
return data
default_wallpapers_dir = get_relative_path("../assets/wallpaper")
json_config_path = get_relative_path("../config/assets/config.json")
if os.path.exists(json_config_path):
with open(json_config_path, "r") as f:
config = json.load(f)
WALLPAPERS_DIR = config.get("wallpapers_dir", default_wallpapers_dir)
else:
WALLPAPERS_DIR = default_wallpapers_dir