mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-22 19:28:09 -06:00
You can now override hardcoded keys by adding attributes to the application module.
This commit is contained in:
parent
4a025caa69
commit
3028b7d8ca
@ -1,4 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
import application
|
||||
import platform
|
||||
import exceptions
|
||||
from ctypes import c_char_p
|
||||
@ -28,4 +29,6 @@ class Keyring(object):
|
||||
return result.value
|
||||
|
||||
def get(self, func):
|
||||
if hasattr(application,func+"_override"):
|
||||
return getattr(application,func+'_override')
|
||||
return getattr(self, "_call_method")("get_"+func)
|
||||
|
Loading…
Reference in New Issue
Block a user