irpf90/tools/commit-msg

14 lines
223 B
Plaintext
Raw Normal View History

2020-01-27 18:22:35 +01:00
#!/usr/bin/env python3
2009-09-02 20:45:53 +02:00
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()