Merge pull request #3324 from gtcooke94/fix_swb_import

Added `os` import in front of `makedirs`
This commit is contained in:
lissyx 2020-09-16 20:44:33 +02:00 committed by GitHub
commit 014479e650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ def maybe_download(archive_url, target_dir, ldc_dataset):
ldc_path = archive_url + ldc_dataset
if not os.path.exists(target_dir):
print('No path "%s" - creating ...' % target_dir)
makedirs(target_dir)
os.makedirs(target_dir)
if not os.path.exists(archive_path):
print('No archive "%s" - downloading...' % archive_path)