Remove download dir from path info

This always returns the default Qt path (e.g. ~/Downloads) and also creates it
each time.

See #2418
This commit is contained in:
Florian Bruhin 2017-09-13 12:39:49 +02:00
parent a1f91f799f
commit 91f5e72f02
2 changed files with 0 additions and 3 deletions

View File

@ -224,7 +224,6 @@ def _path_info():
'data': standarddir.data(), 'data': standarddir.data(),
'system_data': standarddir.system_data(), 'system_data': standarddir.system_data(),
'cache': standarddir.cache(), 'cache': standarddir.cache(),
'download': standarddir.download(),
'runtime': standarddir.runtime(), 'runtime': standarddir.runtime(),
} }

View File

@ -463,7 +463,6 @@ def test_path_info(monkeypatch):
'data': lambda: 'DATA PATH', 'data': lambda: 'DATA PATH',
'system_data': lambda: 'SYSTEM DATA PATH', 'system_data': lambda: 'SYSTEM DATA PATH',
'cache': lambda: 'CACHE PATH', 'cache': lambda: 'CACHE PATH',
'download': lambda: 'DOWNLOAD PATH',
'runtime': lambda: 'RUNTIME PATH', 'runtime': lambda: 'RUNTIME PATH',
} }
@ -476,7 +475,6 @@ def test_path_info(monkeypatch):
assert pathinfo['data'] == 'DATA PATH' assert pathinfo['data'] == 'DATA PATH'
assert pathinfo['system_data'] == 'SYSTEM DATA PATH' assert pathinfo['system_data'] == 'SYSTEM DATA PATH'
assert pathinfo['cache'] == 'CACHE PATH' assert pathinfo['cache'] == 'CACHE PATH'
assert pathinfo['download'] == 'DOWNLOAD PATH'
assert pathinfo['runtime'] == 'RUNTIME PATH' assert pathinfo['runtime'] == 'RUNTIME PATH'