media/webrtc/trunk/build/win/setup_cygwin_mount.py

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

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

mercurial