mirror of
https://github.com/btclock/btclock_v3.git
synced 2024-11-19 05:40:02 +01:00
8 lines
164 B
Python
8 lines
164 B
Python
import subprocess
|
|
|
|
revision = (
|
|
subprocess.check_output(["git", "rev-parse", "HEAD"])
|
|
.strip()
|
|
.decode("utf-8")
|
|
)
|
|
print("'-DGIT_REV=\"%s\"'" % revision) |