Skip to content

Commit bf18501

Browse files
committed
Revert "Validate PYTHONPATH entries"
This reverts commit 429e68b. This is no longer needed after commit bb657e8.
1 parent bb657e8 commit bf18501

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dev/run_pylint.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def main() -> None:
2727
parser.add_argument('--out', type=pathlib.Path, required=True)
2828
parser.add_argument('--src', type=pathlib.Path, action='append',
2929
default=[], dest='sources')
30-
parser.add_argument('--import', type=_path_dir, action='append',
30+
parser.add_argument('--import', type=pathlib.Path, action='append',
3131
default=[], dest='path')
3232
parser.add_argument('--pylintrc', type=pathlib.Path, required=True)
3333
args = parser.parse_args()
@@ -55,11 +55,5 @@ def main() -> None:
5555
args.out.touch()
5656

5757

58-
def _path_dir(arg: str) -> pathlib.Path:
59-
if not arg or ':' in arg:
60-
raise ValueError(f'invalid path directory {arg!r}')
61-
return pathlib.Path(arg)
62-
63-
6458
if __name__ == '__main__':
6559
main()

0 commit comments

Comments
 (0)