diff options
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 |