Skip to content

Commit

Permalink
Create output directory if it does not exits.
Browse files Browse the repository at this point in the history
  • Loading branch information
eerimoq committed Mar 1, 2022
1 parent 9ed158d commit a968ebc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ __pycache__/
# C extensions
*.so
*.o
a.out
a.out*

# Distribution / packaging
.Python
Expand Down
2 changes: 2 additions & 0 deletions pbtools/c_source/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1322,6 +1322,8 @@ def generate_files(infiles,
"""

os.makedirs(output_directory, exist_ok=True)

for filename in infiles:
parsed = parse_file(filename, import_paths)
basename = os.path.basename(filename)
Expand Down
2 changes: 1 addition & 1 deletion pbtools/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.41.1'
__version__ = '0.42.0'

0 comments on commit a968ebc

Please sign in to comment.