Heroku/hikka/version.py

13 lines
269 B
Python

"""Represents current userbot version"""
__version__ = (1, 5, 0)
import git
import os
try:
branch = git.Repo(
path=os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
).active_branch.name
except Exception:
branch = "master"