Skip to content

Commit

Permalink
Changed setup.py to provide a more robust location for the file VERSI…
Browse files Browse the repository at this point in the history
…ON. Hopefully this helps other packages install more easily.
  • Loading branch information
Rory Barnes committed Sep 4, 2024
1 parent 324d399 commit d0bda7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
from setuptools.command.develop import develop

# Read current code version
VersionPath = os.path.join(os.path.abspath("."), "VERSION")
VersionPath = os.path.join(os.path.abspath(os.path.dirname(__file__)), "VERSION")
print(VersionPath)
VERSION = open(VersionPath, "r").read().split("\n")[0].strip()


Expand Down

0 comments on commit d0bda7b

Please sign in to comment.