diff options
author | Timothy Crosley <timothy.crosley@gmail.com> | 2019-02-28 00:39:13 -0800 |
---|---|---|
committer | Timothy Crosley <timothy.crosley@gmail.com> | 2019-02-28 00:39:13 -0800 |
commit | f8c3ea48a5c96265616639e7094f92c708a6da98 (patch) | |
tree | 26cf6493fb20de225bb439579d2b15c416d24539 /isort | |
parent | cf0190af239b33f86b5dea086ece6640926c7ca5 (diff) | |
download | isort-f8c3ea48a5c96265616639e7094f92c708a6da98.tar.gz |
Convert path into OS specific path
Diffstat (limited to 'isort')
-rw-r--r-- | isort/settings.py | 3 |
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 |