Fix wrong terminfo location

This commit is contained in:
Luflosi 2019-03-05 01:24:22 +01:00
parent 6d970c1175
commit 01e9702958
No known key found for this signature in database
GPG key ID: 14140F703B7D8362

View file

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