diff options
| author | Egor Tensin <egor@tensin.name> | 2026-10-05 15:02:11 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-10-05 15:02:11 +0500 |
| commit | 19c7e97db9a14de64171784d749360d490e32e69 (patch) | |
| tree | ed7a8bc1ebfded86ca2d11eaebb777fd1dbeb5dd /project/utils.py | |
| parent | project.ctest_driver: refactoring (diff) | |
| download | cmake-common-19c7e97db9a14de64171784d749360d490e32e69.tar.gz cmake-common-19c7e97db9a14de64171784d749360d490e32e69.zip | |
project.format: refactoring
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)) |
