diff options
Diffstat (limited to 'extensions/common/api/externs_checker.py')
-rw-r--r-- | extensions/common/api/externs_checker.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extensions/common/api/externs_checker.py b/extensions/common/api/externs_checker.py index 58c0076..fd60fdd 100644 --- a/extensions/common/api/externs_checker.py +++ b/extensions/common/api/externs_checker.py @@ -12,6 +12,10 @@ class ExternsChecker(object): self._output_api = output_api self._api_pairs = api_pairs + for path in api_pairs.keys() + api_pairs.values(): + if not input_api.os_path.exists(path): + raise OSError('Path Not Found: %s' % path) + def RunChecks(self): bad_files = [] affected = [f.AbsoluteLocalPath() for f in self._input_api.AffectedFiles()] |