]> git.armaanb.net Git - lightcards.git/blobdiff - lightcards/config.py
Stop using setuptools data_files for config
[lightcards.git] / lightcards / config.py
index 3c99dc263304795cfcee5b61791ba0a8fc7182ea..2b8b93880d6707e15f958507200338b1ab211d8a 100644 (file)
@@ -20,15 +20,7 @@ def read_file(file):
     local_xdg = f"{os.path.expanduser('~')}/{os.environ.get('XDG_CACHE_HOME')}/lightcards/config.py"
     local = f"{os.path.expanduser('~')}/.config/lightcards/config.py"
     world = "/etc/lightcards/config.py"
-    world_default = "/usr/share/doc/lightcards/config.py"
-    local_default = (
-        f"{os.path.expanduser('~')}/.local/share/doc/lightcards/config.py"
-    )
-
-    if os.path.exists(world_default):
-        files.append(world_default)
-    if os.path.exists(local_default):
-        files.append(local_default)
+
     if os.path.exists(world):
         files.append(world)
     if os.path.exists(local_xdg):