mirror of
https://gitlab.com/scemama/EZFIO.git
synced 2024-08-29 15:53:42 +02:00
18 lines
326 B
Python
Executable File
18 lines
326 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
import os
|
|
ROOT = os.path.dirname(__file__)+'/../../'
|
|
|
|
file = open(ROOT+'version','r') ;
|
|
lines = file.readlines() ;
|
|
file.close() ;
|
|
v = list(map(int,lines[0].split('=')[1].split('.')));
|
|
|
|
v[2] += 1
|
|
lines[0] = "VERSION=%d.%d.%d\n"%tuple(v)
|
|
|
|
file = open(ROOT+'version','w')
|
|
file.writelines(lines)
|
|
file.close()
|
|
|