aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/generate-sql-header.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-04-11 22:15:19 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-04-11 22:15:19 +0200
commit1c5b027e316f99c7a00b9f15cd9516e051b9d9b8 (patch)
tree9ab37f9471e74359fdeecf9ad51c7ec0d579b4dd /src/generate-sql-header.py
parentsqlite: create indices (diff)
downloadcimple-1c5b027e316f99c7a00b9f15cd9516e051b9d9b8.tar.gz
cimple-1c5b027e316f99c7a00b9f15cd9516e051b9d9b8.zip
put SQL headers to a separate directory
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