Follow symlinks (mostly because of requests' stupidity)

This commit is contained in:
Colton Myers 2015-04-03 14:20:44 -06:00
parent f8923352c0
commit 2de50bcf69

View File

@ -182,7 +182,7 @@ def gen_thin(cachedir, extra_mods='', overwrite=False, so_mods=''):
# top is a single file module
tfp.add(base)
continue
for root, dirs, files in os.walk(base):
for root, dirs, files in os.walk(base, followlinks=True):
for name in files:
if not name.endswith(('.pyc', '.pyo')):
tfp.add(os.path.join(root, name))