michael@0: # Copyright (c) 2012 The Chromium Authors. All rights reserved. michael@0: # Use of this source code is governed by a BSD-style license that can be michael@0: # found in the LICENSE file. michael@0: michael@0: import os michael@0: import sys michael@0: michael@0: def main(): michael@0: if len(sys.argv) != 2 or sys.argv[1] != '--win-only': michael@0: return 1 michael@0: if sys.platform in ('win32', 'cygwin'): michael@0: self_dir = os.path.dirname(sys.argv[0]) michael@0: mount_path = os.path.join(self_dir, "../../third_party/cygwin") michael@0: batch_path = os.path.join(mount_path, "setup_mount.bat") michael@0: return os.system(os.path.normpath(batch_path) + ">nul") michael@0: return 0 michael@0: michael@0: michael@0: if __name__ == "__main__": michael@0: sys.exit(main())