summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--isort/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/settings.py b/isort/settings.py
index 5aa6cb1d..75718d95 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -202,7 +202,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 os.path.join(path, filename).endswith(skip_path):
+ if os.path.join(path, filename).endswith('/' + skip_path.lstrip('/')):
return True
position = os.path.split(filename)