aboutsummaryrefslogtreecommitdiffstats
path: root/ddns/cfg_parser.py
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2014-03-17 19:10:00 +0100
committerMarius Halden <marius.h@lden.org>2014-03-17 19:10:00 +0100
commitd398793a759acc1d8bf2484f3533d0e9744bd429 (patch)
treece453af337ad0fb94aacb6b445ce01cd7e1f717d /ddns/cfg_parser.py
parent144427894721bb54baa08a7584e850277681c71b (diff)
downloadDDNS.py-d398793a759acc1d8bf2484f3533d0e9744bd429.tar.gz
DDNS.py-d398793a759acc1d8bf2484f3533d0e9744bd429.tar.bz2
DDNS.py-d398793a759acc1d8bf2484f3533d0e9744bd429.tar.xz
Chaged where the configfile is defined and how the config is used
Diffstat (limited to 'ddns/cfg_parser.py')
-rw-r--r--ddns/cfg_parser.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ddns/cfg_parser.py b/ddns/cfg_parser.py
index e8134cd..8defb71 100644
--- a/ddns/cfg_parser.py
+++ b/ddns/cfg_parser.py
@@ -9,9 +9,9 @@ def read_config():
global cfg
if not cfg_file or not os.path.exists(cfg_file):
- return None
+ cfg = None
+ return
with io.open(cfg_file, 'r') as fp:
- _cfg = yaml.load(fp)
-
- cfg = _cfg
+ cfg = yaml.load(fp)
+ fp.close()