mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
...
This commit is contained in:
@@ -76,7 +76,7 @@ def import_site_packages(srcdir, dest):
|
|||||||
if ext in ('py', 'so'):
|
if ext in ('py', 'so'):
|
||||||
shutil.copy2(f, dest)
|
shutil.copy2(f, dest)
|
||||||
elif ext == 'pth' and x != 'setuptools.pth':
|
elif ext == 'pth' and x != 'setuptools.pth':
|
||||||
for line in open(f, 'rb').read().splitlines():
|
for line in open(f):
|
||||||
src = os.path.abspath(j(srcdir, line))
|
src = os.path.abspath(j(srcdir, line))
|
||||||
if os.path.exists(src) and os.path.isdir(src):
|
if os.path.exists(src) and os.path.isdir(src):
|
||||||
import_site_packages(src, dest)
|
import_site_packages(src, dest)
|
||||||
|
|||||||
Reference in New Issue
Block a user