remove unused code

This commit is contained in:
Kovid Goyal 2022-10-09 09:25:23 +05:30
parent 834385baff
commit f7d44330a2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -30,8 +30,6 @@ from glfw.glfw import Command, CompileKey
if sys.version_info[:2] < (3, 8):
raise SystemExit('kitty requires python >= 3.8')
base = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, base)
del sys.path[0]
verbose = False
build_dir = 'build'
@ -484,8 +482,7 @@ def kitty_env() -> Env:
if '-lz' not in ans.ldpaths:
ans.ldpaths.append('-lz')
with suppress(FileExistsError):
os.mkdir(build_dir)
os.makedirs(build_dir, exist_ok=True)
return ans