Changeset 687 in tmcsimulator for trunk/src/python/unifiedlogger/activitylog_watcher.py
- Timestamp:
- 10/02/2022 10:32:42 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/python/unifiedlogger/activitylog_watcher.py
r647 r687 34 34 file1length = 0 35 35 file2length = 0 36 configdir = "config" # default dir for production 36 37 37 38 # Utility functions … … 42 43 # get path to input file from configuration 43 44 def getLogFilePath(): 45 global configdir 44 46 config = ConfigParser.ConfigParser() 45 config.read( 'config/logging_service.cfg')47 config.read(configdir+'/logging_service.cfg') 46 48 return config.get('Paths', 'ActivityLogPath') 47 49 … … 50 52 # jdalbey 2022.9.1 51 53 def getLogFilenames(): 54 global configdir 52 55 config = ConfigParser.ConfigParser() 53 config.read( 'config/logging_service.cfg')56 config.read(configdir+'/logging_service.cfg') 54 57 file1 = config.get('Files','ActivityLogDataFilename') 55 58 file2 = config.get('Files','ActivityLogSummaryFilename') … … 124 127 return resultList 125 128 126 def setup(): 127 # nothing needed for setup 129 def setup(dir): 130 global configdir 131 configdir = dir 128 132 return 129 133 130 134 # Local main for unit testing 131 135 def main(): 132 setup( )136 setup("config/devlinux") 133 137 # Loop Forever, checking every five seconds 134 138 while True:
Note: See TracChangeset
for help on using the changeset viewer.
