File size: 535 Bytes
a4e1045 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import os
from variables import *
if __name__ == '__main__':
print('Enter the path where you want to store the extracted dataset: (default: ./V2X-Sim-2)', end='')
extract_to = input()
if len(extract_to) == 0:
extract_to = './V2X-Sim-2'
os.makedirs(extract_to, exist_ok=True)
for ii in single_files:
os.system(f'unzip {ii}.zip -d {extract_to}')
for ii in separated_files:
for jj in range(1, ii[1]+1):
os.system(f'unzip {ii[0]}{jj}.zip -d {extract_to}')
|