Index: trunk/tools/editor_trends/etl/downloader.py |
— | — | @@ -54,19 +54,19 @@ |
55 | 55 | properties.dump_relative_path, |
56 | 56 | filename) |
57 | 57 | mod_date = text_utils.convert_timestamp_to_datetime_naive(mod_date, properties.timestamp_server) |
58 | | - if file_utils.check_file_exists(properties.location, filename): |
59 | | - mod_loc = file_utils.get_modified_date(properties.location, filename) |
| 58 | + if file_utils.check_file_exists(properties.input_location, filename): |
| 59 | + mod_loc = file_utils.get_modified_date(properties.input_location, filename) |
60 | 60 | if mod_loc == mod_date and (properties.force == False or properties.force == None): |
61 | 61 | print 'You already have downloaded the most recent %s%s dumpfile.' % (properties.language.code, properties.project.name) |
62 | 62 | continue |
63 | 63 | |
64 | 64 | if filemode == 'w': |
65 | | - fh = file_utils.create_txt_filehandle(properties.location, |
| 65 | + fh = file_utils.create_txt_filehandle(properties.input_location, |
66 | 66 | filename, |
67 | 67 | filemode, |
68 | 68 | properties.encoding) |
69 | 69 | else: |
70 | | - fh = file_utils.create_binary_filehandle(properties.location, filename, 'wb') |
| 70 | + fh = file_utils.create_binary_filehandle(properties.input_location, filename, 'wb') |
71 | 71 | |
72 | 72 | if filesize != -1: |
73 | 73 | pbar = progressbar.ProgressBar(widgets=widgets, maxval=filesize).start() |