aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index 2736206..58188b1 100644
--- a/utils.py
+++ b/utils.py
@@ -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!')