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))