Fixed bug in validating downloads dir related to moving settings into common

This commit is contained in:
Micah Lee 2018-03-13 03:59:52 -07:00
parent 76d299a6c9
commit 8e82c07039
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -98,7 +98,7 @@ def main(cwd=None):
except:
print(strings._('error_cannot_create_downloads_dir').format(common.settings.get('downloads_dir')))
valid = False
if valid and not os.access(settings.get('downloads_dir'), os.W_OK):
if valid and not os.access(common.settings.get('downloads_dir'), os.W_OK):
print(strings._('error_downloads_dir_not_writable').format(common.settings.get('downloads_dir')))
valid = False
if not valid: