This commit is contained in:
Kovid Goyal 2018-02-09 16:43:50 +05:30
parent 3068846d8f
commit 973bbf3f8a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
import os
import sys
base = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
base = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
sys.path.insert(0, base)
with open(os.path.join(base, '__main__.py')) as f:
src = f.read()

View File

@ -118,7 +118,7 @@ def main():
if os.access(os.path.join(candidate, 'kitty'), os.X_OK):
break
else:
rpath = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'launcher')
rpath = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'launcher')
if rpath and rpath not in items:
os.environ['PATH'] += os.pathsep + rpath

View File

@ -485,7 +485,7 @@ def package(args, for_bundle=False, sh_launcher=False): # {{{
for x in (libdir, os.path.join(ddir, 'share')):
odir = os.path.join(x, 'terminfo')
safe_makedirs(odir)
subprocess.check_call(['tic', '-o' + odir, 'terminfo/kitty.terminfo'])
subprocess.check_call(['tic', '-x', '-o' + odir, 'terminfo/kitty.terminfo'])
shutil.copy2('__main__.py', libdir)
shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo'))