Bug fix on getAddress

This commit is contained in:
Sergio Durigan Junior 2016-08-25 17:15:37 -04:00
parent 3810312794
commit 30256a0499

View file

@ -579,7 +579,7 @@ class LookupEmailTryBuild (object):
for directory, sort_order in tryjobdir:
for _, _, filenames in os.walk (directory):
for f in sorted (filenames, reverse = sort_order):
with open (f, 'r') as myf:
with open (os.path.join (directory, f), 'r') as myf:
for line in reversed (myf.readlines ()):
m = re.match (name_re, line)
if m: