mirror of
https://github.com/1j01/textual-paint.git
synced 2025-01-03 12:22:23 +03:00
Handle running from outside repo when reporting version
This commit is contained in:
parent
1897dbe386
commit
b818c2c99b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user