Skip to content

Commit 50765ba

Browse files
committed
make sure output dir exists
1 parent f16d079 commit 50765ba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

script/create_sbom.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def temporary_venv():
4040

4141

4242
with temporary_venv() as python:
43+
OUTPUT_FILE.parent.mkdir(parents=True, exist_ok=True)
4344
subprocess.check_call([python, "-m", "pip", "install", DEPS]) # nosec
4445
subprocess.check_call( # nosec
4546
[python, "-m", "cyclonedx_py", "environment", "-o", str(OUTPUT_FILE)]

0 commit comments

Comments
 (0)