irpf90/tools/commit-msg

14 lines
223 B
Python
Executable File

#!/usr/bin/env python3
import os,sys
ROOT = os.path.dirname(__file__)+'/../../'
file = open(ROOT+'src/version.py','r')
exec file
file.close()
file = open(sys.argv[1],'a')
print >>file, 'Version:'+version
file.close()