aboutsummaryrefslogtreecommitdiff
path: root/lib/python/qmk/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/qmk/path.py')
-rw-r--r--lib/python/qmk/path.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/python/qmk/path.py b/lib/python/qmk/path.py
index bb28049b9..cf087265f 100644
--- a/lib/python/qmk/path.py
+++ b/lib/python/qmk/path.py
@@ -33,16 +33,3 @@ def normpath(path):
33 return os.path.normpath(path) 33 return os.path.normpath(path)
34 34
35 return os.path.normpath(os.path.join(os.environ['ORIG_CWD'], path)) 35 return os.path.normpath(os.path.join(os.environ['ORIG_CWD'], path))
36
37
38def file_lines(filename):
39 """ Return a files content, line by line
40
41 Args:
42 filename: path to the file
43
44 Returns:
45 an list, in which each item is a line of the file
46 """
47 with open(filename, "r") as fd:
48 return fd.readlines()