diff --git a/run_mypy.py b/run_mypy.py index 2a2c72dbbe..43196fa7f1 100644 --- a/run_mypy.py +++ b/run_mypy.py @@ -5,6 +5,8 @@ import subprocess # A quick Python implementation of unix 'where' command. def where(exeName, searchPath=os.getenv("PATH")): + if searchPath is None: + searchPath = "" paths = searchPath.split(";" if sys.platform == "win32" else ":") for path in paths: candidatePath = os.path.join(path, exeName)