aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/utils.py
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-05 15:02:11 +0500
committerEgor Tensin <egor@tensin.name>2026-10-05 15:02:11 +0500
commit19c7e97db9a14de64171784d749360d490e32e69 (patch)
treeed7a8bc1ebfded86ca2d11eaebb777fd1dbeb5dd /project/utils.py
parentproject.ctest_driver: refactoring (diff)
downloadcmake-common-19c7e97db9a14de64171784d749360d490e32e69.tar.gz
cmake-common-19c7e97db9a14de64171784d749360d490e32e69.zip
project.format: refactoring
Diffstat (limited to 'project/utils.py')
-rw-r--r--project/utils.py5
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))