def file_choose(self): patha = QFileDialog.getExistingDirectory() patha = os.path.realpath(patha) path = patha