diff options
author | kali <kali@leap.se> | 2012-10-11 03:56:46 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-10-11 03:56:46 +0900 |
commit | dd446094737ec8274f8c5c3d59ab1466e2ebacc0 (patch) | |
tree | 9b6727c6fd5a764127446ebabf4995797190e7e9 /src/leap/crypto | |
parent | 5247c690b786f2b3e026fd3e17529f9fd6962d09 (diff) |
make file_path explicit
Diffstat (limited to 'src/leap/crypto')
-rw-r--r-- | src/leap/crypto/leapkeyring.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/leap/crypto/leapkeyring.py b/src/leap/crypto/leapkeyring.py index bb0ca147..bceadc75 100644 --- a/src/leap/crypto/leapkeyring.py +++ b/src/leap/crypto/leapkeyring.py @@ -1,7 +1,7 @@ -import os - import keyring +from leap.base.config import get_config_file + ############# # Disclaimer ############# @@ -20,7 +20,11 @@ import keyring class LeapCryptedFileKeyring(keyring.backend.CryptedFileKeyring): - filename = os.path.expanduser("~/.config/leap/.secrets") + filename = ".secrets" + + @property + def file_path(self): + return get_config_file(self.filename) def __init__(self, seed=None): self.seed = seed |