build: allow running image scripts in parallel (#71292)

This commit is contained in:
Frédéric Péters 2024-03-06 23:17:59 +01:00
parent 5b4e750b7c
commit f6273ca4e0
2 changed files with 2 additions and 4 deletions

View File

@ -96,8 +96,7 @@ parser.add_argument('--secondary', default='6D1F80')
args = parser.parse_args()
path_out = args.path
if not os.path.exists(path_out):
os.makedirs(path_out)
os.makedirs(path_out, exist_ok=True)
for filename in filenames:
outname = names.get(re.search(r'\d+', filename).group())

View File

@ -73,8 +73,7 @@ for variant in ('normal', 'selected', 'title'):
'width': getattr(args, variant + '_width'),
}
if not os.path.exists(path_out):
os.makedirs(path_out)
os.makedirs(path_out, exist_ok=True)
for filename in filenames:
icon_name = names.get(re.search(r'\d+', filename).group())