diff --git a/check_source/check_spelling.py b/check_source/check_spelling.py
index d6beec26dbb7b8ae37bc122c8937ba24c81aecb9..edb152422e3d27e3d41ae41f48e13a5a82d6c900 100755
--- a/check_source/check_spelling.py
+++ b/check_source/check_spelling.py
@@ -266,6 +266,7 @@ def extract_c_comments(filepath):
                         if PRINT_NON_ALIGNED:
                             lineno = 1 + text.count("\n", 0, i)
                             if PRINT_QTC_TASKFORMAT:
+                                filepath = os.path.abspath(filepath)
                                 print("%s\t%d\t%s\t%s" % (filepath, lineno, "comment", align_vals))
                             else:
                                 print(filepath + ":" + str(lineno) + ":")