2017-09-07 23:24:43 +02:00
|
|
|
import subprocess
|
|
|
|
|
2017-07-20 00:43:06 +02:00
|
|
|
__version__ = "0.16.11"
|
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:
|
|
|
|
__version__ += '-' + node.decode('utf-8').strip()
|
|
|
|
except Exception:
|
|
|
|
pass
|
|
|
|
|