diff options
author | Dr-Irv <irv@princeton.com> | 2018-11-06 11:44:50 -0500 |
---|---|---|
committer | Dr-Irv <irv@princeton.com> | 2018-11-06 11:44:50 -0500 |
commit | a2186ee295204695ebb47094120d31622287aeeb (patch) | |
tree | db4882c2918c7d649bee926094cb17af463d69d9 | |
parent | b5d7cd20696b7deed47cca3f2888c98fe34e5d50 (diff) | |
download | isort-a2186ee295204695ebb47094120d31622287aeeb.tar.gz |
Fix Windows path issue
-rw-r--r-- | isort/settings.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/settings.py b/isort/settings.py index fa146b8c..e5373812 100644 --- a/isort/settings.py +++ b/isort/settings.py @@ -270,7 +270,7 @@ def _get_config_data(file_path, sections): def should_skip(filename, config, path='/'): """Returns True if the file should be skipped based on the passed in settings.""" for skip_path in config['skip']: - if posixpath.abspath(posixpath.join(path, filename)) == posixpath.abspath(skip_path.replace('\\', '/')): + if posixpath.abspath(posixpath.join(path.replace('\\', '/'), filename)) == posixpath.abspath(skip_path.replace('\\', '/')): return True position = os.path.split(filename) |