diff options
Diffstat (limited to 'isort/finders.py')
-rw-r--r-- | isort/finders.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/isort/finders.py b/isort/finders.py index 028bf65c..b017fa3e 100644 --- a/isort/finders.py +++ b/isort/finders.py @@ -320,10 +320,10 @@ class RequirementsFinder(ReqsBaseFinder): # *requirements*/*.{txt,in} if os.path.isdir(full_path): - for subfile_name in os.listdir(path): + for subfile_name in os.listdir(full_path): for ext in cls.exts: if subfile_name.endswith(ext): - results.append(os.path.join(path, subfile_name)) + results.append(os.path.join(full_path, subfile_name)) continue # *requirements*.{txt,in} |