mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Follow symlinks (mostly because of requests' stupidity)
This commit is contained in:
parent
f8923352c0
commit
2de50bcf69
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user