diff options
Diffstat (limited to 'project/utils.py')
| -rw-r--r-- | project/utils.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/project/utils.py b/project/utils.py index 57f5d85..87ac8d1 100644 --- a/project/utils.py +++ b/project/utils.py @@ -17,6 +17,11 @@ import time import project.os +def read_file(path): + with open(path, encoding="utf-8") as fd: + return fd.read() + + def normalize_path(s): return os.path.abspath(os.path.normpath(s)) |
