Skip to content

Commit 3f0b50f

Browse files
committed
Move the now-shared DATA_DIR up
1 parent f9648ba commit 3f0b50f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Tools/unicode/makeunicodedata.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
SCRIPT = os.path.normpath(sys.argv[0])
4141
VERSION = "3.3"
4242

43+
# Local cache location
44+
DATA_DIR = os.path.join('Tools', 'unicode', 'data')
45+
4346
# The Unicode Database
4447
# --------------------
4548
# When changing UCD version please update
@@ -950,8 +953,6 @@ class Difference(Exception):pass
950953
normalization_changes))
951954

952955

953-
DATA_DIR = os.path.join('Tools', 'unicode', 'data')
954-
955956
def open_data(template, version):
956957
local = os.path.join(DATA_DIR, template % ('-'+version,))
957958
if not os.path.exists(local):

0 commit comments

Comments
 (0)