diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2019-03-23 22:31:52 -0700 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-03-24 18:18:26 -0700 |
commit | 36b6b24afbf058f108e518ee1e7ded3f933d3b2e (patch) | |
tree | 33f82fa96f65cc48b633ebe27b219a7aa81f0392 /isort | |
parent | b532f31be4f4f027bce29fcef3c7952bc0e04b50 (diff) | |
download | isort-36b6b24afbf058f108e518ee1e7ded3f933d3b2e.tar.gz |
Merge pull request #911 from timothycrosley/feature/fix-issue-909
Feature/fix issue 909
Diffstat (limited to 'isort')
-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] |