__init__: "develop" check also works with appended to the front version number

This commit is contained in:
Joe Schr 2022-03-11 17:53:29 +01:00
parent 24f480b4ce
commit e5f29df5c4

View File

@ -1,12 +1,11 @@
""" Freqtrade bot """
__version__ = 'develop'
if __version__ == 'develop':
if __version__.endswith('develop'):
try:
import subprocess
__version__ = 'develop-' + subprocess.check_output(
__version__ = __version__ + '-' + subprocess.check_output(
['git', 'log', '--format="%h"', '-n 1'],
stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"')