aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/generate-sql-header.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generate-sql-header.py b/src/generate-sql-header.py
index a250376..78f0517 100755
--- a/src/generate-sql-header.py
+++ b/src/generate-sql-header.py
@@ -76,7 +76,7 @@ def open_output(path):
yield sys.stdout
else:
path = os.path.abspath(path)
- os.makedirs(os.path.dirname(path))
+ os.makedirs(os.path.dirname(path), exist_ok=True)
with open(path, 'w') as fd:
yield fd