Skip to content

Commit 4afc7ae

Browse files
committed
Improve fix for issue #247, relative path not always start with ./
1 parent 9ab3837 commit 4afc7ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pep8.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ def normalize_paths(value, parent=os.curdir):
11371137
return value
11381138
paths = []
11391139
for path in value.split(','):
1140-
if path.startswith('./'):
1140+
if '/' in path:
11411141
path = os.path.abspath(os.path.join(parent, path))
11421142
paths.append(path.rstrip('/'))
11431143
return paths

0 commit comments

Comments
 (0)