fix(formatHeader.py): updated format header to ignore itself

This commit is contained in:
2025-03-18 07:25:46 -04:00
parent 2c98e90c0f
commit 9867e267ea

View File

@@ -120,6 +120,10 @@ if __name__ == "__main__":
args = parser.parse_args() args = parser.parse_args()
absPath = os.path.abspath(args.file) absPath = os.path.abspath(args.file)
fileName = os.path.basename(args.file)
if fileName == "formatHeader.py":
print(f"{BLUECOLOR}NOTE! Cannot format the formatHeader script{RESETCOLOR}")
exit(0)
assert os.path.exists(absPath), f"{REDCOLOR}ERROR! The file {absPath} does not exist{RESETCOLOR}" assert os.path.exists(absPath), f"{REDCOLOR}ERROR! The file {absPath} does not exist{RESETCOLOR}"