Fix wrong terminfo location
This commit is contained in:
parent
6d970c1175
commit
01e9702958
1 changed files with 2 additions and 2 deletions
|
|
@ -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__':
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue