diff options
Diffstat (limited to '')
-rw-r--r-- | utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,9 +1,11 @@ import sys import logging +from pathlib import Path def read_file(filename): lines = [] + filename = Path(filename) if filename.is_dir(): logging.fatal(f'{filename} is a folder instead of a file!') |