radare2/sys/version.py

10 lines
203 B
Python
Raw Normal View History

#!/usr/bin/env python
""" Portable python script to read version from configure.acr """
2017-07-10 07:52:00 +00:00
import sys
with open('configure.acr', 'r') as f:
f.readline()
2017-07-10 07:52:00 +00:00
sys.stdout.write(f.readline().split()[1])