Warning: Can't use blame annotator:
svn blame failed on trunk/src/python/unifiedlogger/__main__.py: ("Can't find a temporary directory: Internal error", 20014)

source: tmcsimulator/trunk/src/python/unifiedlogger/__main__.py @ 446

Revision 446, 487 bytes checked in by jdalbey, 7 years ago (diff)

Change unifiedlogger to get revision number from a config file instead of application.properties in tmcsim.

RevLine 
1import logging_service, os, ConfigParser
2# This main module is provided so the application can be conveniently bundled for deployment
3def main():
4    # get revision number from configuration
5    config = ConfigParser.ConfigParser()
6    config.read('config/application_properties.cfg')
7    revNum = config.get('Versions', 'revision_number')
8   
9    print "Unified Logging Service v"+revNum,"starting from ",os.getcwd()
10    logging_service.startup()
11
12if __name__ == '__main__':
13    main()
Note: See TracBrowser for help on using the repository browser.