Fix #316
This commit is contained in:
parent
3068846d8f
commit
973bbf3f8a
@ -5,7 +5,7 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
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)
|
sys.path.insert(0, base)
|
||||||
with open(os.path.join(base, '__main__.py')) as f:
|
with open(os.path.join(base, '__main__.py')) as f:
|
||||||
src = f.read()
|
src = f.read()
|
||||||
@ -118,7 +118,7 @@ def main():
|
|||||||
if os.access(os.path.join(candidate, 'kitty'), os.X_OK):
|
if os.access(os.path.join(candidate, 'kitty'), os.X_OK):
|
||||||
break
|
break
|
||||||
else:
|
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:
|
if rpath and rpath not in items:
|
||||||
os.environ['PATH'] += os.pathsep + rpath
|
os.environ['PATH'] += os.pathsep + rpath
|
||||||
|
|
||||||
|
|||||||
2
setup.py
2
setup.py
@ -485,7 +485,7 @@ def package(args, for_bundle=False, sh_launcher=False): # {{{
|
|||||||
for x in (libdir, os.path.join(ddir, 'share')):
|
for x in (libdir, os.path.join(ddir, 'share')):
|
||||||
odir = os.path.join(x, 'terminfo')
|
odir = os.path.join(x, 'terminfo')
|
||||||
safe_makedirs(odir)
|
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('__main__.py', libdir)
|
||||||
shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo'))
|
shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo'))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user