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 os.path.exists(os.path.expanduser("~/.dnsupdaterc")):
|
||||
cfgfile = open(os.path.expanduser("~/.dnsupdaterc"), 'r')
|
||||
elif os.path.exists("/etc/dnsupdaterc")):
|
||||
cfgfile = open("/etc/dnsupdaterc"), 'r')
|
||||
elif os.path.exists("/etc/dnsupdaterc"):
|
||||
cfgfile = open("/etc/dnsupdaterc", 'r')
|
||||
else:
|
||||
return msg
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user