Fixed bug in readcfg(), extra )
This commit is contained in:
@@ -126,8 +126,8 @@ def readcfg(msg, show=""):
|
|||||||
if not msg.has_key('cfgfile'):
|
if not msg.has_key('cfgfile'):
|
||||||
if os.path.exists(os.path.expanduser("~/.dnsupdaterc")):
|
if os.path.exists(os.path.expanduser("~/.dnsupdaterc")):
|
||||||
cfgfile = open(os.path.expanduser("~/.dnsupdaterc"), 'r')
|
cfgfile = open(os.path.expanduser("~/.dnsupdaterc"), 'r')
|
||||||
elif os.path.exists("/etc/dnsupdaterc")):
|
elif os.path.exists("/etc/dnsupdaterc"):
|
||||||
cfgfile = open("/etc/dnsupdaterc"), 'r')
|
cfgfile = open("/etc/dnsupdaterc", 'r')
|
||||||
else:
|
else:
|
||||||
return msg
|
return msg
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user