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

Side by Side Diff: tools/list_pkg_directories.py

Issue 11444015: Create mock pub links in the build for all packages under pkg, not a hard-coded list (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | « pkg/pkg.gyp ('k') | 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
(Empty)
1 #!/usr/bin/env python
ahe 2012/12/06 13:44:39 The style guide we use for Python is http://www.ch
Alan Knight 2012/12/06 22:09:23 OK. I don't really know Python, so I don't even kn
ahe 2012/12/06 23:02:28 See: http://google-styleguide.googlecode.com/svn/t
2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file.
5
6
7 '''Tool for listing the directories under pkg, with their lib directories.
8 Used in pkg.gyp. Lists all of the directories in the current directory
9 which have a lib subdirectory.
10
11 Usage:
12 python tools/make_links.py TARGET SOURCES...
ahe 2012/12/06 13:44:39 The comment is out of date.
Alan Knight 2012/12/06 22:09:23 Done.
13 '''
14 import os
15
16 paths = map(lambda x: x + '/lib', filter(os.path.isdir, os.listdir('.')))
17 filter(lambda x: os.path.exists(x), paths)
18
ahe 2012/12/06 13:44:39 Extra line.
Alan Knight 2012/12/06 22:09:23 Done.
OLDNEW
« no previous file with comments | « pkg/pkg.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698