diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-11 22:15:19 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-04-11 22:15:19 +0200 |
commit | 1c5b027e316f99c7a00b9f15cd9516e051b9d9b8 (patch) | |
tree | 9ab37f9471e74359fdeecf9ad51c7ec0d579b4dd /src/generate-sql-header.py | |
parent | sqlite: create indices (diff) | |
download | cimple-1c5b027e316f99c7a00b9f15cd9516e051b9d9b8.tar.gz cimple-1c5b027e316f99c7a00b9f15cd9516e051b9d9b8.zip |
put SQL headers to a separate directory
Diffstat (limited to '')
-rwxr-xr-x | src/generate-sql-header.py | 2 |
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 |