diff --git a/bypy/linux/__main__.py b/bypy/linux/__main__.py index fc34c7884..7d95b6f9a 100644 --- a/bypy/linux/__main__.py +++ b/bypy/linux/__main__.py @@ -76,7 +76,7 @@ def import_site_packages(srcdir, dest): if ext in ('py', 'so'): shutil.copy2(f, dest) 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)) if os.path.exists(src) and os.path.isdir(src): import_site_packages(src, dest)