2 keyring/util/platform_.py | 4 +++-
3 1 file changed, 3 insertions(+), 1 deletion(-)
5 --- a/keyring/util/platform_.py
6 +++ b/keyring/util/platform_.py
7 @@ -2,6 +2,7 @@ from __future__ import absolute_import
11 +from tsconfig.tsconfig import SW_VERSION
13 def _settings_root_XP():
14 return os.path.join(os.environ['USERPROFILE'], 'Local Settings')
15 @@ -19,7 +20,8 @@ def _data_root_Linux():
16 Use freedesktop.org Base Dir Specfication to determine storage
19 - fallback = os.path.expanduser('/opt/platform/.keyring/')
20 + keyring_dir = os.path.join('/opt/platform/.keyring', SW_VERSION)
21 + fallback = os.path.expanduser(keyring_dir)
22 root = os.environ.get('XDG_DATA_HOME', None) or fallback
23 return os.path.join(root, 'python_keyring')