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