From 27dda98975377584e00a5618ff945275076dcef4 Mon Sep 17 00:00:00 2001 From: Larry Kim Date: Tue, 21 May 2013 20:53:23 +0900 Subject: [PATCH] Fix to use absolute path instead of relative path on parser.py --- whois/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whois/parser.py b/whois/parser.py index f48abdb..70cee76 100644 --- a/whois/parser.py +++ b/whois/parser.py @@ -83,7 +83,7 @@ class Parser(object): logging.debug("__init__: Loading configuration file of tld name %s"%(lcTLD)) - execfile("tlds/%s"%(lcTLD), {}, lcConf) + execfile(os.path.join(self.tldPath, "%s"%(lcTLD)), {}, lcConf) lcConf = lcConf.get("parse") self.parseConf.update(lcConf.get(lcWS))