def _browse_project_path(self): path = QFileDialog.getExistingDirectory() path = os.path.realpath(path) self._ui.project_path.setText(path)