When walking through module directories, always follow symlinks. (#15784)

Fixes #15783
This commit is contained in:
jctanner 2016-05-09 14:24:39 -04:00
parent 409bfe4d0f
commit 781de83762

View file

@ -136,7 +136,7 @@ class PluginLoader:
def _all_directories(self, dir):
results = []
results.append(dir)
for root, subdirs, files in os.walk(dir):
for root, subdirs, files in os.walk(dir, followlinks=True):
if '__init__.py' in files:
for x in subdirs:
results.append(os.path.join(root,x))