def _import_root_btn_clicked(self):
    file_dialog = QFileDialog()
    file_dialog.setParent(self.sender())
    self._root_folder_path = QFileDialog.getExistingDirectory(file_dialog, 'import root folder extracted from .iso', get_mbreplacer_dir())
    self._root_folder_path = QtCore.QDir.toNativeSeparators(self._root_folder_path)
    if (not os.path.exists(os.path.join(self._root_folder_path, 'stage'))):
        self._root_folder_path = None
        self._give_error_message("root folder seems to be invalid, no 'stage' folder found")
        return
    self._root_folder_label.setText(self._root_folder_path)
def _import_root_btn_clicked(self):
    file_dialog = QFileDialog()
    file_dialog.setParent(self.sender())
    self._root_folder_path = QFileDialog.getExistingDirectory(file_dialog, 'import root folder extracted from .iso', get_mbreplacer_dir())
    self._root_folder_path = QtCore.QDir.toNativeSeparators(self._root_folder_path)
    if (not os.path.exists(os.path.join(self._root_folder_path, 'stage'))):
        self._root_folder_path = None
        self._give_error_message("root folder seems to be invalid, no 'stage' folder found")
        return
    self._root_folder_label.setText(self._root_folder_path)