diff options
author | Glenn Glazer <coyot@lindenlab.com> | 2016-08-15 14:48:09 -0700 |
---|---|---|
committer | Glenn Glazer <coyot@lindenlab.com> | 2016-08-15 14:48:09 -0700 |
commit | 7ed9c85a1a28e494adbd2cef85b186e45dba2dc2 (patch) | |
tree | 74efe7b74f31234ac1e82c82a7c170f2471e30bd /indra/viewer_components/manager/download_update.py | |
parent | 2afcff5b013c778f55af77f27932e10792986a05 (diff) |
SL-323: fixes to Tkinter race condition, post --channel and --settings testing, contains debugging statements to be removed after all testing complete
Diffstat (limited to 'indra/viewer_components/manager/download_update.py')
-rwxr-xr-x | indra/viewer_components/manager/download_update.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/viewer_components/manager/download_update.py b/indra/viewer_components/manager/download_update.py index 23f784c6c1..a5e365fa37 100755 --- a/indra/viewer_components/manager/download_update.py +++ b/indra/viewer_components/manager/download_update.py @@ -45,6 +45,8 @@ def download_update(url = None, download_dir = None, size = None, progressbar = #chunk_size is in bytes, amount to download at once queue = Queue.Queue() + if not os.path.exists(download_dir): + os.makedirs(download_dir) #the url split provides the basename of the filename filename = os.path.join(download_dir, url.split('/')[-1]) req = requests.get(url, stream=True) |