source:
tmcsimulator/trunk/src/python/unifiedlogger/__main__.py
@
446
| Revision 446, 487 bytes checked in by jdalbey, 7 years ago (diff) |
|---|
| Line | |
|---|---|
| 1 | import logging_service, os, ConfigParser |
| 2 | # This main module is provided so the application can be conveniently bundled for deployment |
| 3 | def 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 | |
| 12 | if __name__ == '__main__': |
| 13 | main() |
Note: See TracBrowser
for help on using the repository browser.
