[FIX] core: adpat 9874892b9 to multiple manifest files

This commit is contained in:
Christophe Simonis
2016-09-16 11:34:22 +02:00
parent c129ae36aa
commit a256e1ed34
+3 -1
View File
@@ -156,7 +156,9 @@ def get_module_path(module, downloaded=False, display_warning=True):
"""
initialize_sys_path()
for adp in ad_paths:
if os.path.exists(opj(adp, module, MANIFEST)) or os.path.exists(opj(adp, '%s.zip' % module)):
files = [opj(adp, module, manifest) for manifest in MANIFEST_NAMES] +\
[opj(adp, module + '.zip')]
if any(os.path.exists(f) for f in files):
return opj(adp, module)
if downloaded: