From 305a54847c59a570f15e5605c5cd4ef507b22169 Mon Sep 17 00:00:00 2001 From: protolambda Date: Sat, 8 Feb 2020 23:59:08 +0100 Subject: [PATCH] more explicit about version file location --- tests/core/pyspec/eth2spec/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core/pyspec/eth2spec/__init__.py b/tests/core/pyspec/eth2spec/__init__.py index 6941b68f0..1ff584383 100644 --- a/tests/core/pyspec/eth2spec/__init__.py +++ b/tests/core/pyspec/eth2spec/__init__.py @@ -1,3 +1,4 @@ # See setup.py about usage of VERSION.txt -with open('VERSION.txt') as f: +import os +with open(os.path.join(os.path.dirname(__file__), 'VERSION.txt')) as f: __version__ = f.read().strip()