2017-09-07 23:24:43 +02:00
|
|
|
import subprocess
|
|
|
|
|
2017-12-17 11:56:04 +01:00
|
|
|
__version__ = "0.98.2"
|
2017-09-07 23:24:43 +02:00
|
|
|
|
|
|
|
try:
|
|
|
|
node = subprocess.Popen('git rev-parse --short=12 HEAD', shell=True,
|
|
|
|
stdout=subprocess.PIPE).communicate()[0]
|
|
|
|
if node:
|
2017-11-23 00:22:40 +01:00
|
|
|
__version__ += '+' + node.decode('utf-8').strip()
|
2017-09-07 23:24:43 +02:00
|
|
|
except Exception:
|
|
|
|
pass
|
|
|
|
|