1
1
mirror of https://github.com/rsms/inter.git synced 2024-12-26 00:54:14 +03:00
inter/misc/version.py
Rasmus Andersson eda835f2f2 release v1.1
2017-08-22 12:47:55 -07:00

17 lines
448 B
Python
Executable File

#!/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()