Skip to content

Commit c465c10

Browse files
committed
trying to fix license not found error
1 parent b728adf commit c465c10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codeflash/update_license_version.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import re
23
from datetime import datetime
34

@@ -16,7 +17,7 @@ def main():
1617
version_replacement = r"\g<1>" + major_minor_version + r".x"
1718

1819
# Read the LICENSE file
19-
with open("LICENSE", encoding="utf8") as file:
20+
with open(os.path.join(os.path.dirname(__file__), "LICENSE"), encoding="utf8") as file:
2021
license_text = file.read()
2122

2223
# Replace the version in the LICENSE file

0 commit comments

Comments
 (0)