Permalink
Browse files

Improve VSO filename

  • Loading branch information...
1 parent 8828cd7 commit 3086892bb0ddc4619031727e302ad48a285eb9b1 @segfaulthunter segfaulthunter committed Aug 27, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 sunpy/net/vso/__init__.py
@@ -335,6 +335,7 @@ def mk_filename(pattern, response, sock, url):
if not name:
name = response.fileid.replace('/', '_')
+ name = os.path.basename(name)
fname = pattern.format(file=name, **dict(response))
dir_ = os.path.dirname(fname)
if not os.path.exists(dir_):

0 comments on commit 3086892

Please sign in to comment.