Changeset 70fee58 in flex_extract.git for source/python/classes/ControlFile.py
- Timestamp:
- Oct 12, 2018, 1:17:12 PM (6 years ago)
- Branches:
- master, ctbto, dev
- Children:
- 785b882
- Parents:
- 5827ff6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/python/classes/ControlFile.py
r0e576fc r70fee58 60 60 sys.path.append('../') 61 61 import _config 62 from mods.tools import my_error 62 from mods.tools import my_error, silent_remove 63 63 64 64 # ------------------------------------------------------------------------------ … … 188 188 189 189 try: 190 with open(os.path.join(_config.PATH_CONTROLFILES,191 self.controlfile)) as f:190 cfile = os.path.join(_config.PATH_CONTROLFILES, self.controlfile) 191 with open(cfile) as f: 192 192 fdata = f.read().split('\n') 193 193 except IOError: 194 print('Could not read CONTROL file "' + args.controlfile + '"')194 print('Could not read CONTROL file "' + cfile + '"') 195 195 print('Either it does not exist or its syntax is wrong.') 196 196 print('Try "' + sys.argv[0].split('/')[-1] + \ … … 450 450 self.mailops = [self.mailops] 451 451 452 if queue in ['ecgate', 'cca']and \452 if queue in _config.QUEUES_LIST and \ 453 453 not self.gateway or not self.destination or \ 454 454 not self.ecuid or not self.ecgid: … … 463 463 _config.FILE_MARS_REQUESTS) 464 464 if os.path.isfile(marsfile): 465 os.remove(marsfile)465 silent_remove(marsfile) 466 466 467 467 # check all logical variables for data type
Note: See TracChangeset
for help on using the changeset viewer.