更新 'openi.py'
This commit is contained in:
parent
2d7ce388a3
commit
31a089df56
1
openi.py
1
openi.py
|
@ -112,6 +112,7 @@ def c2net_multidataset_to_env(multi_data_url, data_dir):
|
||||||
filePath = data_dir + "/" + filename
|
filePath = data_dir + "/" + filename
|
||||||
if not os.path.exists(filePath):
|
if not os.path.exists(filePath):
|
||||||
os.makedirs(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))
|
os.system("unzip {} -d {}".format(zipfile_path, filePath))
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue