forgot break in for loop

This commit is contained in:
Calum Lind 2014-02-09 19:45:28 +00:00
parent 58c048f1b0
commit 018330c92c

View File

@ -180,6 +180,7 @@ def get_default_download_dir():
for line in open(os.path.join(xdg_config_home, 'user-dirs.dirs'), 'r'):
if not line.startswith('#') and line.startswith('XDG_DOWNLOAD_DIR'):
download_dir = os.path.expandvars(line.partition("=")[2].rstrip().strip('"'))
break
except IOError:
pass