source: tmcsimulator/trunk/src/python/demo/__main__.py @ 440

Revision 440, 456 bytes checked in by jdalbey, 7 years ago (diff)

Move unified logger to python folder under src. Create a separate web app to display the log file in a formatted html page. Fix sanitize defect in cms and har layers.

Line 
1import os, ConfigParser
2
3# This main module is provided so the application can be conveniently bundled for deployment
4def main():
5    print os.getcwd()
6    print "Hello Demo World"
7
8    # get path to output file from configuration
9    config = ConfigParser.ConfigParser()
10    config.read('config/logging_service.cfg')
11    logfilepath  = config.get('Paths', 'UnifiedLogPath')
12    print "logfile path is: ",logfilepath
13
14if __name__ == '__main__':
15    main()
Note: See TracBrowser for help on using the repository browser.