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)