From d3be87ea58b1dab67ae76db5c9980b356f5893e6 Mon Sep 17 00:00:00 2001 From: Timothy Crosley Date: Sat, 23 Mar 2019 21:38:01 -0700 Subject: Update main.py to take into account the provided settings path (if there is one) --- isort/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/isort/main.py b/isort/main.py index 24de5c0c..8c3ec9a3 100644 --- a/isort/main.py +++ b/isort/main.py @@ -345,7 +345,8 @@ def main(argv=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 = [] -- cgit v1.2.1