From de3e53960944a725e43dc234b2eb835a4626417a Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 27 Feb 2020 12:49:01 -0800 Subject: [PATCH] updates --- utils/google_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/google_utils.py b/utils/google_utils.py index 820f4e08..20c3a3ba 100644 --- a/utils/google_utils.py +++ b/utils/google_utils.py @@ -24,7 +24,7 @@ def gdrive_download(id='1HaXkef9z6y5l4vUnCYgdmEAj61c6bfWO', name='coco.zip'): s = "curl -Lb ./cookie -s \"https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=%s\" -o %s" % ( id, name) else: # small file - s = 'curl -f -L -o %s https://drive.google.com/uc?export=download&id=%s' % (name, id) + s = "curl -f -L -o %s 'https://drive.google.com/uc?export=download&id=%s'" % (name, id) r = os.system(s) # execute, capture return values os.remove('cookie') if os.path.exists('cookie') else None