build: allow running image scripts in parallel (#71292)
This commit is contained in:
parent
5b4e750b7c
commit
f6273ca4e0
|
@ -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())
|
||||
|
|
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue