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

Unified Diff: tools/list_pkg_directories.py

Issue 18497012: Add markdown to third_party/pkg (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: tools/list_pkg_directories.py
diff --git a/tools/list_pkg_directories.py b/tools/list_pkg_directories.py
index 6d015642dbb4dd0db62b33a6f65083f8d79b9691..1878eebf4009a4a042a404cf019806700f041f9d 100644
--- a/tools/list_pkg_directories.py
+++ b/tools/list_pkg_directories.py
@@ -15,9 +15,10 @@ import os
import sys
def main(argv):
- paths = map(lambda x: x + '/lib', filter(os.path.isdir, os.listdir(argv[1])))
- for lib in filter(lambda x: os.path.exists(x), paths):
- print lib
+ paths = map(lambda x: x + '/lib', filter(lambda x: os.path.isdir(
+ os.path.join(argv[1], x)), os.listdir(argv[1])))
Bob Nystrom 2013/07/08 16:40:08 Make a variable for argv[1] so it's clear what it'
Emily Fortuna 2013/07/08 17:36:30 Done.
+ for lib in filter(lambda x: os.path.exists(os.path.join(argv[1], x)), paths):
+ print os.path.join(argv[1], lib)
if __name__ == '__main__':
sys.exit(main(sys.argv))
« third_party/pkg/markdown/.gitignore ('K') | « third_party/pkg/markdown/test/markdown_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698