summaryrefslogtreecommitdiff
path: root/src/flake8/options
diff options
context:
space:
mode:
authorEric N. Vander Weele <ericvw@gmail.com>2019-07-22 21:29:24 -0400
committerEric N. Vander Weele <ericvw@gmail.com>2019-07-22 21:29:24 -0400
commit95f26d7fe9dd72a7aa4acc223758c38ede85031b (patch)
treea2c08a55c6dfe5ffef0a8df4158a349509991182 /src/flake8/options
parentf41e87bf375e5b7b6452f6ec353543fde5a3d653 (diff)
downloadflake8-95f26d7fe9dd72a7aa4acc223758c38ede85031b.tar.gz
Push down extra config file path normalization into main config handling
Move the path normalization for extra configuration file paths down into the main `config` module where other path normalization occurs. This also guarantees that the call to `utils.normalize_paths()` is given a sequence, instead of a potential `None` value.
Diffstat (limited to 'src/flake8/options')
-rw-r--r--src/flake8/options/config.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py
index 026618c..2af8cc8 100644
--- a/src/flake8/options/config.py
+++ b/src/flake8/options/config.py
@@ -28,11 +28,7 @@ class ConfigFileFinder(object):
"""
# The values of --append-config from the CLI
extra_config_files = extra_config_files or []
- self.extra_config_files = [
- # Ensure the paths are absolute paths for local_config_files
- os.path.abspath(f)
- for f in extra_config_files
- ]
+ self.extra_config_files = utils.normalize_paths(extra_config_files)
# Platform specific settings
self.is_windows = sys.platform == "win32"