Lines Matching defs:path
33 import os.path
1337 def WriteNorm2NFCTextFile(path):
1339 with open(os.path.join(path, "nfc.txt"), "w") as out_file:
1365 def WriteNorm2NFKCTextFile(path):
1367 with open(os.path.join(path, "nfkc.txt"), "w") as out_file:
1398 def WriteNorm2NFKC_CFTextFile(path):
1400 with open(os.path.join(path, "nfkc_cf.txt"), "w") as out_file:
1437 def WriteNorm2(path):
1438 WriteNorm2NFCTextFile(path)
1439 WriteNorm2NFKCTextFile(path)
1440 WriteNorm2NFKC_CFTextFile(path)
1471 dest_path = os.path.dirname(t)
1472 t = os.path.join(dest_path, "uts46.txt")
1670 # Inner lists contain (basename, path, parser) tuples.
1681 unidata_path = os.path.join(icu4c_src_root, "source", "data", "unidata")
1682 norm2_path = os.path.join(unidata_path, "norm2")
1683 testdata_path = os.path.join(icu4c_src_root, "source", "test", "testdata")
1691 (folder, basename) = os.path.split(source_file)
1698 new_source_file = os.path.join(folder, new_basename)
1718 if not os.path.exists(dest_path): os.makedirs(dest_path)
1723 dest_file = os.path.join(dest_path, dest_basename)
1938 uchar_path = os.path.join(icu4c_src_root, "source",
2060 uscript_path = os.path.join(icu4c_src_root, "source",
2184 # preparseucd.py path/to/UCD/root --only_ppucd path/to/ppucd/outputfile
2190 print("Usage: %s path/to/UCD/root path/to/ICU/src/root" % sys.argv[0])
2192 icu4c_src_root = os.path.join(icu_src_root, "icu4c")
2193 icu_tools_root = os.path.join(icu_src_root, "tools")
2197 source_files.append(os.path.join(root, file))
2201 for (basename, path, parser) in files:
2210 in_file = codecs.open(path, "r", charset)
2221 unidata_path = os.path.join(icu4c_src_root, "source", "data", "unidata")
2225 norm2_path = os.path.join(unidata_path, "norm2")
2226 if not os.path.exists(norm2_path): os.makedirs(norm2_path)
2235 ppucd_path = os.path.join(unidata_path, "ppucd.txt")
2248 genprops_path = os.path.join(icu_tools_root, "unicode", "c", "genprops")
2249 if not os.path.exists(genprops_path): os.makedirs(genprops_path)
2250 out_path = os.path.join(genprops_path, "pnames_data.h")