aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/generate-sql-header.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/generate-sql-header.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/generate-sql-header.py b/src/generate-sql-header.py
index 2cb2862..a250376 100755
--- a/src/generate-sql-header.py
+++ b/src/generate-sql-header.py
@@ -75,6 +75,8 @@ def open_output(path):
if path is None:
yield sys.stdout
else:
+ path = os.path.abspath(path)
+ os.makedirs(os.path.dirname(path))
with open(path, 'w') as fd:
yield fd