euscan: drop fixed version dependencies
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
This commit is contained in:
@ -11,16 +11,10 @@ import os
|
||||
|
||||
__author__ = "Corentin Chary (iksaif)"
|
||||
__email__ = "corentin.chary@gmail.com"
|
||||
__version__ = "git"
|
||||
__productname__ = "euscan"
|
||||
__description__ = "A tool to detect new upstream releases."
|
||||
|
||||
if os.path.exists(os.path.join(os.path.dirname(__file__), "..", ".git")):
|
||||
import git
|
||||
repo = git.Repo(os.path.join(os.path.dirname(__file__)))
|
||||
__version__ = "git-%s" % repo.head.commit
|
||||
else:
|
||||
__version__ = "git"
|
||||
|
||||
|
||||
# Imports
|
||||
|
||||
|
Reference in New Issue
Block a user