From 1795e9073b85aeab81e668feeb4a1e7f8a4994c8 Mon Sep 17 00:00:00 2001 From: Gguidini Date: Thu, 5 Oct 2023 14:08:33 -0300 Subject: [PATCH] fix: Fix VERSION file missing 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. --- codecov_cli/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/codecov_cli/__init__.py b/codecov_cli/__init__.py index 17340198..3a75112a 100644 --- a/codecov_cli/__init__.py +++ b/codecov_cli/__init__.py @@ -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