summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-02-28 00:39:13 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-02-28 00:39:13 -0800
commitf8c3ea48a5c96265616639e7094f92c708a6da98 (patch)
tree26cf6493fb20de225bb439579d2b15c416d24539
parentcf0190af239b33f86b5dea086ece6640926c7ca5 (diff)
downloadisort-f8c3ea48a5c96265616639e7094f92c708a6da98.tar.gz
Convert path into OS specific path
-rw-r--r--isort/settings.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/isort/settings.py b/isort/settings.py
index 261eb64e..fba19e7f 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -336,7 +336,8 @@ def should_skip(filename, config, path='/'):
if fnmatch.fnmatch(filename, glob):
return True
- if not (os.path.isfile(normalized_path) or os.path.isdir(normalized_path) or os.path.islink(normalized_path)):
+ os_specific_path = os.path.join(posixpath.split(normalized_path))
+ if not (os.path.isfile(os_specific_path) or os.path.isdir(os_specific_path) or os.path.islink(os_specific_path)):
return True
return False