lookupfile should lookup the given file=xxx

(Earlier it used to lookup the pre-split term.)
pull/11733/head
Abhijit Menon-Sen 9 years ago
parent 8509f22839
commit 8737061a8f

@ -75,7 +75,7 @@ class LookupModule(LookupBase):
if paramvals['delimiter'] == 'TAB':
paramvals['delimiter'] = "\t"
lookupfile = self._loader.path_dwim_relative(basedir, 'files', term)
lookupfile = self._loader.path_dwim_relative(basedir, 'files', paramvals['file'])
var = self.read_csv(lookupfile, key, paramvals['delimiter'], paramvals['default'], paramvals['col'])
if var is not None:
if type(var) is list:

Loading…
Cancel
Save