Skip to content

Commit 55bc2af

Browse files
author
Diptorup Deb
committed
Make year settable as CLI arg in update_copyrights.py
1 parent 3bca91c commit 55bc2af

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/update_copyrights.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,7 @@ def update_copyrights(root_dir, year):
3030
path = os.path.dirname(os.path.realpath(__file__))
3131
source_path = os.path.dirname(path)
3232

33-
update_copyrights(source_path + "/numba_dpex", 2023)
33+
if __name__ == "__main__":
34+
print("Provide new copyright year:")
35+
year = input()
36+
update_copyrights(source_path + "/numba_dpex", year)

0 commit comments

Comments
 (0)