File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 18
18
19
19
__author__ = 'kaufmanno'
20
20
21
- version = '2.29 '
21
+ version = '2.30 '
22
22
cl = 0 # current command line index
23
23
cmd_lines = [] # command lines
24
24
eod = False # end of download
@@ -269,15 +269,20 @@ def failed_download(msg):
269
269
data = data [data .find (b'\xfd ' ):]
270
270
logging .info ('*** Downloading data ... ***' )
271
271
# check if there is a command file as parameter
272
+ # logging.debug('Command file: %s length %d' %(cmdfile, len(cmd_lines)))
272
273
if cmdfile != '' :
273
274
if cl < len (cmd_lines )+ 2 :
274
275
# create output file name
275
276
cl += 1
276
- outfile = os .path .abspath (BIN_DIR , cmd_lines [cl ].strip ('\n ' ) +
277
- time .strftime ('_%Y%m%d_%H%M' , time .gmtime ())+ '.bin' )
277
+ # logging.debug('*** command line %d: %s' %(cl, cmd_lines[cl]))
278
+ outfile = os .path .abspath (os .path .join (BIN_DIR , cmd_lines [cl ].strip ('\n ' ) +
279
+ time .strftime ('_%Y%m%d_%H%M' , time .gmtime ()) + '.bin' ))
280
+ # logging.debug('*** outfile: %s ***' %outfile)
278
281
# read expected download duration
279
282
cl += 1
283
+ # logging.debug('*** command line %d: %s' %(cl, cmd_lines[cl]))
280
284
dl_expected_duration = int (cmd_lines [cl ])
285
+ # logging.debug('*** Expected duration: %d ***' %dl_expected_duration)
281
286
else :
282
287
logging .error ('*** Incorrect arguments in command file !' )
283
288
status = 2
You can’t perform that action at this time.
0 commit comments