OLD | NEW |
---|---|
(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.
| |
OLD | NEW |