def generate_logs_ds(dataset_type): if dataset_type == str(1): new_path = Path('E:/Memoire/ProstateX/generated/train/logs/') new_path.mkdir(parents = True, exist_ok = True) else: new_path = Path('E:/Memoire/ProstateX/generated/test/logs/') new_path.mkdir(parents = True, exist_ok = True)