diff --git a/src/textual_paint/__init__.py b/src/textual_paint/__init__.py index 5048026..b0f43ae 100644 --- a/src/textual_paint/__init__.py +++ b/src/textual_paint/__init__.py @@ -13,4 +13,4 @@ __license__ = "MIT" from os.path import exists, dirname from subprocess import check_output if exists(dirname(__file__) + "/../../.git"): - __version__ = "development " + check_output(["git", "describe", "--tags"]).strip().decode() + __version__ = "development " + check_output(["git", "describe", "--tags"], cwd=dirname(__file__)).strip().decode()