fix paths

This commit is contained in:
askiiart 2025-04-25 10:40:10 -05:00
parent b771df150e
commit da373914d6
Signed by untrusted user who does not match committer: askiiart
GPG key ID: 6A32977DAF31746A

11
blend
View file

@ -128,13 +128,14 @@ def image_data_from_dict(dictionary):
distro_map, aliases = image_data_from_dict(
yaml.safe_load(open('/usr/share/blend/images.yaml')))
tmp = image_data_from_dict(yaml.safe_load(open('system.yaml'))['images'])
distro_map += tmp[0]
aliases += tmp[1]
tmp += image_data_from_dict(yaml.safe_load(
open(f'{os.getenv('XDG_CONFIG_HOME')}/blend/images.yaml')))
tmp = image_data_from_dict(yaml.safe_load(open('/system.yaml'))['images'])
distro_map += tmp[0]
aliases += tmp[1]
if os.path.exists(f'{os.getenv('XDG_CONFIG_HOME')}/blend/images.yaml'):
tmp = image_data_from_dict(yaml.safe_load(
open(f'{os.getenv('XDG_CONFIG_HOME')}/blend/images.yaml')))
distro_map += tmp[0]
aliases += tmp[1]
default_distro = 'arch-linux'