OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 import os | |
6 import sys | |
7 | |
8 def main(): | |
9 if len(sys.argv) != 2 or sys.argv[1] != '--win-only': | |
10 return 1 | |
11 if 'win' in sys.platform: | |
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") | |
jam
2012/01/28 00:06:57
I suspect it'll be much faster to do the registry
scottmg
2012/01/28 00:20:09
I get 0.34s. I'd lean towards not doing it so I do
| |
16 return 0 | |
17 | |
18 | |
19 if __name__ == "__main__": | |
20 sys.exit(main()) | |
OLD | NEW |