Skip to content

Commit b728adf

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

codeflash/update_license_version.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from datetime import datetime
33

44
from version import __version_tuple__
5-
import os
5+
66

77
def main():
88
# Use the version tuple from version.py
@@ -16,8 +16,7 @@ def main():
1616
version_replacement = r"\g<1>" + major_minor_version + r".x"
1717

1818
# Read the LICENSE file
19-
with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "codeflash", "LICENSE"),
20-
encoding="utf8") as file:
19+
with open("LICENSE", encoding="utf8") as file:
2120
license_text = file.read()
2221

2322
# Replace the version in the LICENSE file

0 commit comments

Comments
 (0)