Skip to content

Commit

Permalink
default output directory is now "./output" (will be automatically cre…
Browse files Browse the repository at this point in the history
…ated if doesn't exist yet)
  • Loading branch information
richrobe committed Jul 5, 2023
1 parent 77602ba commit 4d8e92c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,4 @@ $RECYCLE.BIN/
# Ignore Output files
*.pdf
/carwatch/examples/properties.tex
/output/
3 changes: 2 additions & 1 deletion carwatch/qr_codes/study_qr_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(
self.output_dir = None
self.output_name = f"qr_code_{self.study.study_name}"

def generate(self, output_dir: str = ".", output_name: Optional[str] = None): # pragma: no cover
def generate(self, output_dir: str = "./output", output_name: Optional[str] = None): # pragma: no cover
"""Generate a `*.png` file with QR code according to the properties of the created ``QrCodeGenerator``.
Parameters
Expand All @@ -63,6 +63,7 @@ def generate(self, output_dir: str = ".", output_name: Optional[str] = None): #
"""
output_dir = Path(output_dir)
output_dir.mkdir(parents=True, exist_ok=True)
output_name = Path(output_name)
try:
assert_is_dir(output_dir)
Expand Down
2 changes: 1 addition & 1 deletion carwatch/scripts/prepare_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@
)
@click.option(
"--output_dir",
default=".",
default="./output",
prompt="Output directory for generated files",
help="Directory where generated files will be stored.",
envvar="PATHS",
Expand Down

0 comments on commit 4d8e92c

Please sign in to comment.