From c397ae44c9587b5ae4c53aa516281dcf17a973db Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 3 Nov 2017 11:45:28 +0100 Subject: [PATCH] fix --- notifier.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/notifier.py b/notifier.py index ac683473c..1afc3aa92 100644 --- a/notifier.py +++ b/notifier.py @@ -23,17 +23,6 @@ curdir = os.path.dirname(os.path.realpath(__file__)) lib_dir = curdir + os.sep + 'lib' sys.path.insert(0, lib_dir) -config_file = curdir + os.sep + 'config.yaml' -config = {} -with open(config_file,'r') as f: - config = yaml.load(f) - -API_KEY = config['pushbullet']['token'] -DEVICE_ID = config['device_id'] \ - if 'device_id' in config else socket.gethostname() - -DEBUG = config['debug'] if 'debug' in config else False - modules = {} plugins = {} @@ -174,7 +163,7 @@ Usage: {} [-v] [-h] [-c ] with open(config_file,'r') as f: config = yaml.load(f) - API_KEY = config['pushbullet_token'] + API_KEY = config['pushbullet']['token'] DEVICE_ID = config['device_id'] \ if 'device_id' in config else socket.gethostname()