#
import os
+import collections
from BWizardPage import *
import BToolchainSearch
self.pageContent.toolchainList.clear()
def _selectionChanged(self):
- infos = qvariant_converter.getStringDict(self.pageContent.toolchainList.currentItem().data(Qt.UserRole))
+ infos = collections.defaultdict(lambda: unicode("not defined"))
+ infos.update(qvariant_converter.getStringDict(self.pageContent.toolchainList.currentItem().data(Qt.UserRole)))
self.pageContent.infoLabel.setText("GCC " + infos["version"] + " (" + infos["build"] + ")\nTarget: " + infos["target"] + "\nThread model: " + infos["thread"])
self.pageContent.infoLabel.setVisible(True)
self.emit(SIGNAL("completeChanged()"))
import fnmatch
import glob
import re
-import collections
import const
return list(set(toolchains))
def getToolchainInfo(output):
- info = collections.defaultdict(unicode)
+ info = {}
expr = re.compile("Target: .*")
target = expr.findall(output)
if len(target) == 1: