mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-14 04:03:55 +00:00
14 lines
371 B
Python
14 lines
371 B
Python
""" FreqTrade bot """
|
|
__version__ = 'develop'
|
|
|
|
if __version__ == 'develop':
|
|
|
|
try:
|
|
import subprocess
|
|
__version__ = 'develop-' + subprocess.check_output(
|
|
['git', 'log', '--format="%h"', '-n 1'],
|
|
stderr=subprocess.DEVNULL).decode("utf-8").rstrip().strip('"')
|
|
except Exception:
|
|
# git not available, ignore
|
|
pass
|