depot/third_party/nixpkgs/pkgs/development/python-modules/youseedee/0001-use-packaged-unicode-data.patch
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

25 lines
693 B
Diff

From 9013d36cfe7b2958eb18ce373f49193b66a0bbf6 Mon Sep 17 00:00:00 2001
From: Dan Callaghan <djc@djc.id.au>
Date: Sun, 23 Apr 2023 16:14:55 +1000
Subject: [PATCH] use packaged unicode data
diff --git a/lib/youseedee/__init__.py b/lib/youseedee/__init__.py
index 4424ef1..9a72f52 100644
--- a/lib/youseedee/__init__.py
+++ b/lib/youseedee/__init__.py
@@ -11,10 +11,7 @@
UCD_URL = "https://unicode.org/Public/UCD/latest/ucd/UCD.zip"
def ucd_dir():
- ucddir = os.path.expanduser("~/.youseedee")
- if not os.path.isdir(ucddir):
- os.mkdir(ucddir)
- return ucddir
+ return "@ucd_dir@"
def ensure_files():
if os.path.isfile(os.path.join(ucd_dir(), "UnicodeData.txt")):
--
2.38.4