+
+ def _getNodeIcon(self, obj):
+ icon_file = os.path.join(obj["info"]["path"], const.PREDEFINED_BOARD_ICON_FILE)
+ if os.path.exists(icon_file):
+ return icon_file
+ elif obj["info"]["type"] == "dir":
+ return const.PREDEFINED_BOARD_DEFAULT_DIR_ICON
+ else:
+ return const.PREDEFINED_BOARD_DEFAULT_PROJECT_ICON