Use the correct output directory for downloading Unicode files

This commit is contained in:
varkor 2018-05-16 23:08:19 +01:00
parent 68c4fb8f2f
commit d3c257b0ae

View File

@ -66,8 +66,7 @@ surrogate_codepoints = (0xd800, 0xdfff)
def fetch(f):
path = fdir + os.path.basename(f)
if not os.path.exists(path):
os.system("curl -O http://www.unicode.org/Public/UNIDATA/%s"
% f)
os.system("curl -o {0}{1} http://www.unicode.org/Public/UNIDATA/{1}".format(fdir, f))
if not os.path.exists(path):
sys.stderr.write("cannot load %s" % f)