Chromium Code Reviews| Index: build/dir_exists.py |
| diff --git a/build/dir_exists.py b/build/dir_exists.py |
| index 0a89bc87bbf6dab98c4d6d6aaf85848c96e4ca3d..7ed05bb6a568dc0102acb8a658cc52c7eb7a01bd 100755 |
| --- a/build/dir_exists.py |
| +++ b/build/dir_exists.py |
| @@ -8,8 +8,16 @@ import os.path |
| import sys |
| def main(): |
| - sys.stdout.write(str(os.path.isdir(sys.argv[1]))) |
| + sys.stdout.write(_is_dir(sys.argv[1])) |
| return 0 |
| +def _is_dir(dir_name): |
| + return str(os.path.isdir(dir_name)) |
| + |
| +def DoMain(args): |
| + """Hook to be called from gyp withing starting a separate python |
|
scottmg
2014/04/11 14:35:40
withing -> when
Daniel Bratell
2014/04/14 12:21:12
Done "withing" -> "without".
|
| + interpreter.""" |
| + return _is_dir(args[0]) |
| + |
| if __name__ == '__main__': |
| sys.exit(main()) |