1
1
mirror of https://github.com/rsms/inter.git synced 2024-12-26 09:04:06 +03:00
inter/misc/version.py

17 lines
448 B
Python
Raw Normal View History

2017-08-22 22:46:29 +03:00
#!/usr/bin/env python
# encoding: utf8
from __future__ import print_function
import os, sys
from collections import OrderedDict
from ConfigParser import RawConfigParser
def main():
srcDir = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'src')
config = RawConfigParser(dict_type=OrderedDict)
config.read(os.path.join(srcDir, 'fontbuild.cfg'))
sys.stdout.write(config.get('main', 'version'))
if __name__ == '__main__':
main()