Skip to content

Commit

Permalink
Merge pull request #281 from codecov/gio/bugfix-missing-version
Browse files Browse the repository at this point in the history
fix: Fix VERSION file missing
  • Loading branch information
giovanni-guidini authored Oct 5, 2023
2 parents 0112aad + 1795e90 commit f9f0915
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion codecov_cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
with open("VERSION", encoding="utf-8") as f:
from os import path

here = path.abspath(path.dirname(__file__))


with open(path.join(here, "..", "VERSION"), encoding="utf-8") as f:
version_number = f.readline().strip()

__version__ = version_number

0 comments on commit f9f0915

Please sign in to comment.