Skip to content

Commit

Permalink
Fix license header script to ignore _version.py
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Aug 26, 2024
1 parent a2347d9 commit 206ee84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/license_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def main():
if "build" in root.split(os.path.sep):
continue
for file in files:
if file.endswith(".py") and file is not "_version.py":
if file.endswith(".py") and os.path.basename(file) != "_version.py":
file_path = os.path.join(root, file)
if not check_and_add_license_header(file_path, write_header):
print(f"License header missing in: {file_path}")
Expand Down

0 comments on commit 206ee84

Please sign in to comment.