Skip to content

Commit

Permalink
fix: Fix VERSION file missing
Browse files Browse the repository at this point in the history
The path for the version file was not currectly setup.
It was looking for VERSION in the current dir (where python was running),
not where the CLI is installed.
  • Loading branch information
giovanni-guidini committed Oct 5, 2023
1 parent 0112aad commit 1795e90
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 1795e90

Please sign in to comment.