more explicit about version file location

This commit is contained in:
protolambda 2020-02-08 23:59:08 +01:00
parent 1a16e9a3ab
commit 305a54847c
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 2 additions and 1 deletions

View File

@ -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()