We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 227f6b0 commit ed8464fCopy full SHA for ed8464f
1 file changed
src/validate_headers.py
@@ -10,6 +10,7 @@
10
11
shebang = ["#!usr/bin/python\n"]
12
blank_line = "\n"
13
+LICENSE_PATH = Path(__file__).parent.absolute().joinpath("supported-licenses.json")
14
15
16
def main(args):
@@ -18,7 +19,7 @@ def main(args):
18
19
current_year = datetime.now().year
20
assert args.year <= current_year, f"Invalid first copyright year: {args.year}"
21
- with open("supported-licenses.json", "rb") as f:
22
+ with open(LICENSE_PATH, "rb") as f:
23
LICENSES = json.load(f)
24
license_info = LICENSES[args.license]
25
0 commit comments