Do exist_ok at the right place...

This commit is contained in:
Florian Bruhin 2018-09-19 15:14:24 +02:00
parent bcf9b0ec37
commit d4e388f9d5

View File

@ -127,7 +127,7 @@ def patch_mac_app():
for lib in ['QtCore', 'QtWebEngineCore', 'QtQuick', 'QtQml', 'QtNetwork',
'QtGui', 'QtWebChannel', 'QtPositioning']:
dest = os.path.join(app_path, lib + '.framework', 'Versions', '5')
os.makedirs(dest, exist_ok=True)
os.makedirs(dest)
os.symlink(os.path.join(os.pardir, os.pardir, os.pardir, 'Contents',
'MacOS', lib),
os.path.join(dest, lib))
@ -385,7 +385,7 @@ def main():
read_github_token()
if args.no_asciidoc:
os.makedirs(os.path.join('qutebrowser', 'html', 'doc'))
os.makedirs(os.path.join('qutebrowser', 'html', 'doc'), exist_ok=True)
else:
run_asciidoc2html(args)