10
0
mirror of https://gitlab.com/scemama/EZFIO.git synced 2024-11-13 01:23:46 +01:00
EZFIO/git-tools/commit-msg

14 lines
243 B
Plaintext
Raw Permalink Normal View History

2018-05-02 19:42:30 +02:00
#!/usr/bin/python2
2014-08-26 15:04:22 +02:00
import os,sys
ROOT = os.path.dirname(__file__)+'/../../'
file = open(ROOT+'version','r')
lines = file.readlines()
file.close()
file = open(sys.argv[1],'a')
print >>file, 'Version:'+lines[0].split('=')[1]
file.close()