mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
5 lines
141 B
Python
5 lines
141 B
Python
import subprocess
|
|
|
|
def get_id():
|
|
output = subprocess.check_output(["git", "rev-parse", "HEAD"]).decode("ascii")
|
|
return int(output[:8], 16)
|