[fix] args to wget
This commit is contained in:
@@ -58,9 +58,7 @@ GEONAMES_FILES = [(DUMP_URL, '', True, ALL_COUNTRIES_ZIP_FILE),
|
|||||||
|
|
||||||
def download_file(url, dest):
|
def download_file(url, dest):
|
||||||
logger.info('Downloading file from {}'.format(url))
|
logger.info('Downloading file from {}'.format(url))
|
||||||
req = urllib2.urlopen(url)
|
subprocess.check_call(['wget', url, '-O', dest])
|
||||||
with open(dest, 'wb') as fp:
|
|
||||||
shutil.copyfileobj(req, fp)
|
|
||||||
|
|
||||||
|
|
||||||
def admin_ddl(admin_level):
|
def admin_ddl(admin_level):
|
||||||
|
|||||||
Reference in New Issue
Block a user