fix(formatHeader.py): updated format header to ignore itself
This commit is contained in:
@@ -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}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user