Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
michael@0 | 2 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 3 | # found in the LICENSE file. |
michael@0 | 4 | |
michael@0 | 5 | import os |
michael@0 | 6 | import sys |
michael@0 | 7 | |
michael@0 | 8 | def main(): |
michael@0 | 9 | if len(sys.argv) != 2 or sys.argv[1] != '--win-only': |
michael@0 | 10 | return 1 |
michael@0 | 11 | if sys.platform in ('win32', 'cygwin'): |
michael@0 | 12 | self_dir = os.path.dirname(sys.argv[0]) |
michael@0 | 13 | mount_path = os.path.join(self_dir, "../../third_party/cygwin") |
michael@0 | 14 | batch_path = os.path.join(mount_path, "setup_mount.bat") |
michael@0 | 15 | return os.system(os.path.normpath(batch_path) + ">nul") |
michael@0 | 16 | return 0 |
michael@0 | 17 | |
michael@0 | 18 | |
michael@0 | 19 | if __name__ == "__main__": |
michael@0 | 20 | sys.exit(main()) |