Merge branch 'wrong_terminfo_location' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal
2019-03-05 06:27:39 +05:30

View File

@@ -23,7 +23,7 @@ def compile_terminfo(base):
tfile = tfiles[0]
directory, xterm_kitty = os.path.split(tfile)
_, directory = os.path.split(directory)
odir = os.path.join(base, 'terminfo', directory)
odir = os.path.join(base, directory)
os.makedirs(odir, exist_ok=True)
ofile = os.path.join(odir, xterm_kitty)
shutil.move(tfile, ofile)
@@ -39,7 +39,7 @@ def generate_terminfo():
with open('terminfo/kitty.terminfo', 'w') as f:
f.write(generate_terminfo())
compile_terminfo(base)
compile_terminfo(os.path.join(base, 'terminfo'))
if __name__ == '__main__':