10
0
mirror of https://gitlab.com/scemama/EZFIO.git synced 2024-12-22 04:13:34 +01:00
EZFIO/git-tools/commit-msg
Anthony Scemama 7e6be9ab45 Python3.
Version:2.0.0

Version:2.0.1
2020-01-27 20:10:12 +01:00

14 lines
247 B
Python
Executable File

#!/usr/bin/python3
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('Version:'+lines[0].split('=')[1], file=file)
file.close()