This repository has been archived on 2025-10-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
inter-font/misc/version.py
Rasmus Andersson eda835f2f2 release v1.1
2017-08-22 12:47:55 -07:00

16 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()