summaryrefslogtreecommitdiff
path: root/isort
diff options
context:
space:
mode:
authorTimothy Edmund Crosley <timothy.crosley@gmail.com>2019-03-23 22:31:52 -0700
committerTimothy Crosley <timothy.crosley@gmail.com>2019-03-24 18:18:26 -0700
commit36b6b24afbf058f108e518ee1e7ded3f933d3b2e (patch)
tree33f82fa96f65cc48b633ebe27b219a7aa81f0392 /isort
parentb532f31be4f4f027bce29fcef3c7952bc0e04b50 (diff)
downloadisort-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.py3
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]