|
@@ -399,6 +399,7 @@ if selected_platform in platform_list:
|
|
|
sys.modules.pop('detect')
|
|
|
|
|
|
env.module_list = []
|
|
|
+ env.module_icons_paths = []
|
|
|
env.doc_class_path = {}
|
|
|
|
|
|
for x in module_list:
|
|
@@ -421,13 +422,22 @@ if selected_platform in platform_list:
|
|
|
if (can_build):
|
|
|
config.configure(env)
|
|
|
env.module_list.append(x)
|
|
|
+
|
|
|
+ # Get doc classes paths (if present)
|
|
|
try:
|
|
|
- doc_classes = config.get_doc_classes()
|
|
|
- doc_path = config.get_doc_path()
|
|
|
- for c in doc_classes:
|
|
|
- env.doc_class_path[c] = "modules/" + x + "/" + doc_path
|
|
|
+ doc_classes = config.get_doc_classes()
|
|
|
+ doc_path = config.get_doc_path()
|
|
|
+ for c in doc_classes:
|
|
|
+ env.doc_class_path[c] = "modules/" + x + "/" + doc_path
|
|
|
except:
|
|
|
pass
|
|
|
+ # Get icon paths (if present)
|
|
|
+ try:
|
|
|
+ icons_path = config.get_icons_path()
|
|
|
+ env.module_icons_paths.append("modules/" + x + "/" + icons_path)
|
|
|
+ except:
|
|
|
+ # Default path for module icons
|
|
|
+ env.module_icons_paths.append("modules/" + x + "/" + "icons")
|
|
|
|
|
|
sys.path.remove(tmppath)
|
|
|
sys.modules.pop('config')
|