Changeset 436 in tmcsimulator
- Timestamp:
- 07/10/2019 01:48:55 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/webapps/unifiedlogger/cad_watcher.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/unifiedlogger/cad_watcher.py
r433 r436 15 15 16 16 # Read the cms message file 17 def readFile(): 18 text_file = open("../../CADcomments.log", "r") 19 lines = text_file.read().split('\n') 17 def readFile(): 18 lines = [] 19 try: 20 text_file = open("../../CADcomments.log", "r") 21 except IOError: 22 print "Error: missing CADcomments.log file." 23 else: 24 lines = text_file.read().split('\n') 25 text_file.close() 20 26 return lines 21 27
Note: See TracChangeset
for help on using the changeset viewer.
