def scan_charmap_folders(appState):
    """ Scans ~/.durdraw/charmap and $durdraw/config """
    internal_charsets_path = pathlib.Path(__file__).parent.joinpath("charsets")
    charmap_dirs = ["~/.durdraw/charsets", internal_charsets_path]
    for directory in charmap_dirs:
        directory = os.path.expanduser(directory)
        if os.path.isdir(directory) and os.access(directory, os.R_OK):
            for filename in os.listdir(directory):
                if filename.endswith(".ini"):
                    file_path = os.path.join(directory, filename)
                    load_charmap_file(file_path, appState)
 Scans ~/.durdraw/charmap and $durdraw/config 
durdraw/durdraw_charsets.py