at master 936 B view raw
1diff --git a/lib/youseedee/__init__.py b/lib/youseedee/__init__.py 2index 5e73ef8..2cdbdd0 100644 3--- a/lib/youseedee/__init__.py 4+++ b/lib/youseedee/__init__.py 5@@ -38,19 +38,12 @@ UCD_URL = "https://unicode.org/Public/UCD/latest/ucd/UCD.zip" 6 7 def ucd_dir(): 8 """Return the directory where Unicode data is stored""" 9- return Path(platformdirs.user_cache_dir("youseedee", ensure_exists=True)) 10+ return Path("@ucd_dir@") 11 12 13 def ensure_files(): 14 """Ensure the Unicode data files are downloaded and up to date, and download them if not""" 15- file_lock = FileLock(ucd_dir() / ".youseedee_ensure_files.lock") 16- with file_lock: 17- if not (ucd_dir() / "UnicodeData.txt").is_file(): 18- _download_files() 19- if not _up_to_date(): 20- # Remove the zip if it exists 21- (ucd_dir() / "UCD.zip").unlink(missing_ok=True) 22- _download_files() 23+ return 24 25 26 def _up_to_date():