summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDr-Irv <irv@princeton.com>2018-11-06 11:44:50 -0500
committerDr-Irv <irv@princeton.com>2018-11-06 11:44:50 -0500
commita2186ee295204695ebb47094120d31622287aeeb (patch)
treedb4882c2918c7d649bee926094cb17af463d69d9
parentb5d7cd20696b7deed47cca3f2888c98fe34e5d50 (diff)
downloadisort-a2186ee295204695ebb47094120d31622287aeeb.tar.gz
Fix Windows path issue
-rw-r--r--isort/settings.py2
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)