Ignore makedirs-command if file in base folder

This commit is contained in:
rasmusvt 2022-07-07 13:07:22 +02:00
parent 0ed85e1398
commit b1b705f28f

View file

@ -26,6 +26,7 @@ def save_options(options, path, ignore=None):
if not os.path.isdir(os.path.dirname(path)): if not os.path.isdir(os.path.dirname(path)):
if os.path.dirname(path):
os.makedirs(os.path.dirname(path)) os.makedirs(os.path.dirname(path))