...
This commit is contained in:
parent
5fdeb3b3b4
commit
d2a16bc8e8
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user