X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBFolderPage.py;h=e1af7e3278f8db5cbdb00de0675b4f8f67b3ba10;hb=e80b8410edc8e74e94662722194d1cfddbb19ec5;hp=ba79b4a9edade3dc1451f073c6a846140c9daf1e;hpb=6326db0b9d73cfe24428ab00bebfc021e66eef8d;p=bertos.git diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index ba79b4a9..e1af7e32 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -44,14 +44,14 @@ class BFolderPage(BWizardPage): self._setProjectPath() def _directoryChanged(self, directory): - self._destinationFolder = str(directory) + self._destinationFolder = str(QDir.toNativeSeparators(directory)) self._setProjectPath() def _setProjectPath(self): if self._destinationFolder != "" and self._projectName <> "": if not self._destinationFolder.endswith(os.sep): - self._destinationFolder += os.sep - self.pageContent.projectPath.setText(self._destinationFolder + self._projectName) + self._destinationFolder += "/" + self.pageContent.projectPath.setText(QDir.toNativeSeparators(self._destinationFolder + self._projectName)) if os.path.exists(self._destinationFolder + self._projectName): self.pageContent.warningLabel.setVisible(True) self.pageContent.warningLabel.setText(self.tr("Warning: the selected directory exists, \