更新 'openi.py'

This commit is contained in:
liuzx 2023-05-09 15:59:05 +08:00
parent 2d7ce388a3
commit 31a089df56
1 changed files with 1 additions and 0 deletions

View File

@ -112,6 +112,7 @@ def c2net_multidataset_to_env(multi_data_url, data_dir):
filePath = data_dir + "/" + filename
if not os.path.exists(filePath):
os.makedirs(filePath)
#If it is a tar compressed package, you can use os.system("tar -xvf {} {}".format(zipfile_path, filePath))
os.system("unzip {} -d {}".format(zipfile_path, filePath))
except Exception as e: