Skip to content

Commit bfcd15c

Browse files
authored
Make input path a real path not a string (#9)
1 parent 225007c commit bfcd15c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

check_homework.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"""Script to check this homework."""
33
import argparse
44
import logging
5+
from pathlib import Path
56

67
from homework_checker.checker import Checker
78
from homework_checker.md_writer import MdWriter
@@ -33,7 +34,7 @@ def main():
3334
log.debug("Enable DEBUG logging.")
3435
# Read the job file.
3536
log.debug('Reading from file "%s"', args.input)
36-
checker = Checker(args.input)
37+
checker = Checker(Path(args.input))
3738
results = checker.check_all_homeworks()
3839
md_writer = MdWriter()
3940
md_writer.update(results)

0 commit comments

Comments
 (0)