Skip to content

Commit 4481421

Browse files
committed
Update various utilities.
1 parent 4662db3 commit 4481421

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

utilities/export_todo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ def export_todo_items(todo_items: dict, file_path: str):
120120

121121

122122
if __name__ == "__main__":
123+
os.chdir(os.path.dirname(__file__))
124+
123125
export_todo_items(
124126
extract_todo_items(os.path.join("..", "colour_checker_detection")),
125127
os.path.join("..", "TODO.rst"),

utilities/unicode_to_ascii.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,6 @@ def unicode_to_ascii(root_directory: str):
6969

7070

7171
if __name__ == "__main__":
72+
os.chdir(os.path.dirname(__file__))
73+
7274
unicode_to_ascii(os.path.join("..", "colour_checker_detection"))

0 commit comments

Comments
 (0)