From 6ac13c8fc10f4ecdc4ad029ba8e274588eafd483 Mon Sep 17 00:00:00 2001 From: Gil Forcada Date: Tue, 16 Feb 2016 23:10:42 +0100 Subject: [PATCH] Fix last check of setup.cfg It was missing the leading '/'. --- flake8_isort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8_isort.py b/flake8_isort.py index f934260..d042d57 100644 --- a/flake8_isort.py +++ b/flake8_isort.py @@ -69,7 +69,7 @@ def search_isort_config(self): # If the setup file exists and has an "isort" section, # then we've found the configuration. - setup_file = os.path.join(partial_path, 'setup.cfg') + setup_file = '{0}{1}setup.cfg'.format(partial_path, os.sep) if os.path.exists(setup_file): config = ConfigParser() config.read(setup_file)