trying to fix license not found error

This commit is contained in:
Alvin Ryanputra 2025-02-14 12:44:30 +08:00
parent b728adf1cd
commit c465c10c53

View file

@ -1,3 +1,4 @@
import os
import re
from datetime import datetime
@ -16,7 +17,7 @@ def main():
version_replacement = r"\g<1>" + major_minor_version + r".x"
# Read the LICENSE file
with open("LICENSE", encoding="utf8") as file:
with open(os.path.join(os.path.dirname(__file__), "LICENSE"), encoding="utf8") as file:
license_text = file.read()
# Replace the version in the LICENSE file