diff options
Diffstat (limited to 'isort/main.py')
-rw-r--r-- | isort/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/isort/main.py b/isort/main.py index 300a2311..17d2471b 100644 --- a/isort/main.py +++ b/isort/main.py @@ -338,7 +338,8 @@ def main(argv: Optional[Sequence[str]] = None) -> None: arguments['recursive'] = True if not arguments.get('apply', False): arguments['ask_to_apply'] = True - config = from_path(os.path.abspath(file_names[0]) or os.getcwd()).copy() + + config = from_path(arguments.get('settings_path', '') or os.path.abspath(file_names[0]) or os.getcwd()).copy() config.update(arguments) wrong_sorted_files = False skipped = [] # type: List[str] |