Skip to content

Commit c9d7387

Browse files
committed
Include full image filename in transcript files
1 parent 0845be6 commit c9d7387

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ The argument can also be a directory path instead of a file path. In such case t
4343

4444
### `--output-dir`
4545

46-
By default, the program outputs to stdout and logs to stderr. With this option, when processing file `image_name.png` it will output to `OUTPUT_DIR/image_name.txt` and log to `OUTPUT_DIR/image_name.log`.
46+
By default, the program outputs to stdout and logs to stderr. With this option, when processing file `image_name.png` it will output to `OUTPUT_DIR/image_name.png.txt` and log to `OUTPUT_DIR/image_name.log`.
4747

4848
### `--generate-svg`
4949

parse_qwantz/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def main(
5252
print(generate_svg(image))
5353
return
5454
if output_dir:
55-
sys.stdout = (output_dir / (input_file_path.stem + '.txt')).open('w')
55+
sys.stdout = (output_dir / (input_file_path.name + '.txt')).open('w')
5656
logging.basicConfig(filename=output_dir / (input_file_path.stem + '.log'), filemode='w', force=True)
5757
if footer:
5858
for line in parse_footer(image):

0 commit comments

Comments
 (0)