Tweak manylinux image extractor

This commit is contained in:
Valentin Niess
2025-05-19 22:12:27 +02:00
parent 1fdb439e70
commit 8090602b0f
4 changed files with 85 additions and 23 deletions

View File

@@ -32,9 +32,9 @@ def urlretrieve(url, filename=None):
else:
debug('DOWNLOAD', '%s as %s', url, filename)
parent_directory = os.path.dirname(filename)
if not os.path.exists(parent_directory):
os.makedirs(parent_directory)
parent_directory = os.path.dirname(filename)
if parent_directory and not os.path.exists(parent_directory):
os.makedirs(parent_directory)
if _urlretrieve is None:
data = urllib2.urlopen(url).read()