summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Crosley <timothy.crosley@gmail.com>2019-02-28 00:48:18 -0800
committerTimothy Crosley <timothy.crosley@gmail.com>2019-02-28 00:48:18 -0800
commit5fe486563c1881fdc37d4dd7ae3db147fe3cc276 (patch)
tree7e67c47795ff17811c81341b9832306d742a911e
parentf8c3ea48a5c96265616639e7094f92c708a6da98 (diff)
downloadisort-5fe486563c1881fdc37d4dd7ae3db147fe3cc276.tar.gz
Use OS specific file name in check
-rw-r--r--isort/settings.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/isort/settings.py b/isort/settings.py
index fba19e7f..78ed9975 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -336,8 +336,7 @@ def should_skip(filename, config, path='/'):
if fnmatch.fnmatch(filename, glob):
return True
- 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)):
+ if not (os.path.isfile(filename) or os.path.isdir(filename) or os.path.islink(filename)):
return True
return False