Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: build/config/win/get_visual_studio_path.py

Issue 134763002: Add a missing "import glob". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import errno 5 import errno
6 import glob
6 import os 7 import os
7 import re 8 import re
8 import subprocess 9 import subprocess
9 import sys 10 import sys
10 11
11 """ 12 """
12 This script searches for Visual Studio versions on the current system. 13 This script searches for Visual Studio versions on the current system.
13 14
14 Pass in the preferred VS version on the command line, or pass "auto" for 15 Pass in the preferred VS version on the command line, or pass "auto" for
15 autodetect. 16 autodetect.
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 requested_version = sys.argv[1] 167 requested_version = sys.argv[1]
167 vs_path = _DetectVisualStudioVersion(version_map[requested_version], 168 vs_path = _DetectVisualStudioVersion(version_map[requested_version],
168 'e' in requested_version) 169 'e' in requested_version)
169 if not vs_path: 170 if not vs_path:
170 # No Visual Studio version detected. 171 # No Visual Studio version detected.
171 print '""' # Return empty string to .gn file. 172 print '""' # Return empty string to .gn file.
172 sys.exit(1); 173 sys.exit(1);
173 174
174 # Return Visual Studio path to the .gn file. 175 # Return Visual Studio path to the .gn file.
175 print '"%s"' % vs_path 176 print '"%s"' % vs_path
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698