def zipfile_unzip(file_path=None, extract_dir=None, **filedialog_kwargs):
if file_path is None:
file_path = QtGui.QFileDialog.getOpenFileName(**filedialog_kwargs)[0]
if extract_dir is None:
extract_dir = os.path.dirname(file_path)
shutil.unpack_archive(file_path, extract_dir=extract_dir)
评论列表
文章目录