mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2025-07-17 21:56:07 -04:00
First great commit for Gtk. It is partially functional now
This commit is contained in:
@@ -7,7 +7,9 @@ import paths
|
||||
if platform.architecture()[0][:2] == "32":
|
||||
lib = load_library("api_keys32", x86_path=paths.app_path("keys/lib"))
|
||||
else:
|
||||
lib = load_library("api_keys64", x64_path=paths.app_path("keys/lib"))
|
||||
# lib = load_library("api_keys64", x64_path=paths.app_path("keys/lib"))
|
||||
import linuxKeys
|
||||
lib = linuxKeys
|
||||
|
||||
keyring = None
|
||||
|
||||
@@ -26,4 +28,4 @@ class Keyring(object):
|
||||
return result.value
|
||||
|
||||
def get(self, func):
|
||||
return getattr(self, "_call_method")("get_"+func)
|
||||
return getattr(self, "_call_method")("get_"+func)
|
||||
|
21
src/keys/linuxKeys.py
Normal file
21
src/keys/linuxKeys.py
Normal file
@@ -0,0 +1,21 @@
|
||||
def get_api_key():
|
||||
return "8pDLbyOW3saYnvSZ4uLFg\0"
|
||||
|
||||
def get_api_secret():
|
||||
return "YsgdrzY9B4yyYvYsyee78rKI3GshjHpenVS9LnFJXY\0";
|
||||
|
||||
#char *get_dropbox_api_key(){
|
||||
#return "key\0";
|
||||
#}
|
||||
#char *get_dropbox_api_secret(){
|
||||
#return "secret_key\0";
|
||||
#}
|
||||
#char *get_twishort_api_key(){
|
||||
#return "key\0";
|
||||
#}
|
||||
#char *get_bts_user(){
|
||||
#return "user\0";
|
||||
#}
|
||||
#char *get_bts_password(){
|
||||
#return "pass\0";
|
||||
#}
|
Reference in New Issue
Block a user