"""
Slot called when the project name is changed manually by the user.
"""
- self._project_name = str(name).replace(" ", "_")
+ self._project_name = unicode(name).replace(" ", "_")
self.setProjectPath()
def directoryChanged(self, directory):
"""
Slot called when the project folder is changed manually by the user.
"""
- self._destination_folder = str(QDir.toNativeSeparators(directory))
+ self._destination_folder = unicode(QDir.toNativeSeparators(directory))
self.setProjectPath()
def selectDirectory(self):
configuration = self.projectInfo("MODULES")[self.currentModule()]["configuration"]
configurations = self.projectInfo("CONFIGURATIONS")
if "type" not in configurations[configuration][property]["informations"] or configurations[configuration][property]["informations"]["type"] == "int":
- configurations[configuration][property]["value"] = str(int(self.pageContent.propertyTable.cellWidget(index, 1).value()))
+ configurations[configuration][property]["value"] = unicode(int(self.pageContent.propertyTable.cellWidget(index, 1).value()))
elif configurations[configuration][property]["informations"]["type"] == "enum":
configurations[configuration][property]["value"] = unicode(self.pageContent.propertyTable.cellWidget(index, 1).currentText())
elif configurations[configuration][property]["informations"]["type"] == "boolean":
self._validation_process.start(filename, ["-v"])
self._validation_process.waitForStarted(1000)
if self._validation_process.waitForFinished(200):
- description = str(self._validation_process.readAllStandardError())
+ description = unicode(self._validation_process.readAllStandardError())
info = bertos_utils.getToolchainInfo(description)
if len(info) >= 4:
valid = True
cppasrc = " \\\n\t".join(cppasrc) + " \\"
cxxsrc = " \\\n\t".join(cxxsrc) + " \\"
asrc = " \\\n\t".join(asrc) + " \\"
- constants = "\n".join([os.path.basename(project_info.info("PROJECT_PATH")) + "_" + key + " = " + str(value) for key, value in constants.items()])
+ constants = "\n".join([os.path.basename(project_info.info("PROJECT_PATH")) + "_" + key + " = " + unicode(value) for key, value in constants.items()])
return csrc, pcsrc, cppasrc, cxxsrc, asrc, constants
def findModuleFiles(module, project_info):