10
0
mirror of https://gitlab.com/scemama/irpf90.git synced 2024-11-13 01:23:45 +01:00
irpf90/tools/commit-msg
2018-04-27 15:18:22 +02:00

14 lines
223 B
Python
Executable File

#!/usr/bin/env python2
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()