| 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}') | |