Changeset 454 in tmcsimulator for trunk/src/python/unifiedlogger/cad_watcher.py
- Timestamp:
- 07/18/2019 08:19:25 AM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/python/unifiedlogger/cad_watcher.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python/unifiedlogger/cad_watcher.py
r439 r454 1 import json, time 1 import json, time, ConfigParser 2 2 from copy import deepcopy 3 3 … … 20 20 # Read the cad comments log 21 21 def readFile(): 22 # get path to input file from configuration 23 config = ConfigParser.ConfigParser() 24 config.read('config/logging_service.cfg') 25 logfilepath = config.get('Paths', 'UnifiedLogPath') 26 22 27 lines = [] 23 28 try: 24 text_file = open( "CADcomments.log", "r")29 text_file = open(logfilepath + "CADcomments.log", "r") 25 30 except IOError: 26 print "Error: missing CADcomments.log file."31 print "Error: missing "+logfilepath+"CADcomments.log file." 27 32 else: 28 33 lines = text_file.read().split('\n')
Note: See TracChangeset
for help on using the changeset viewer.
