Skip to content

Commit ed8464f

Browse files
authored
fix: Fixed validation script path (#7)
1 parent 227f6b0 commit ed8464f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/validate_headers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
shebang = ["#!usr/bin/python\n"]
1212
blank_line = "\n"
13+
LICENSE_PATH = Path(__file__).parent.absolute().joinpath("supported-licenses.json")
1314

1415

1516
def main(args):
@@ -18,7 +19,7 @@ def main(args):
1819
current_year = datetime.now().year
1920
assert args.year <= current_year, f"Invalid first copyright year: {args.year}"
2021

21-
with open("supported-licenses.json", "rb") as f:
22+
with open(LICENSE_PATH, "rb") as f:
2223
LICENSES = json.load(f)
2324
license_info = LICENSES[args.license]
2425

0 commit comments

Comments
 (0)