Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
|
dtu
2013/02/13 23:54:23
Possibly move these into telemetry under discover.
| |
| 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 import os | 4 import os |
| 5 | 5 |
| 6 def GetAllPageSetFilenames(): | 6 def GetAllPageSetFilenames(): |
| 7 results = [] | 7 results = [] |
| 8 start_dir = os.path.dirname(__file__) | 8 start_dir = os.path.dirname(__file__) |
| 9 for dirpath, _, filenames in os.walk(start_dir): | 9 for dirpath, _, filenames in os.walk(start_dir): |
| 10 for f in filenames: | 10 for f in filenames: |
| 11 if os.path.splitext(f)[1] != '.json': | 11 if os.path.splitext(f)[1] != '.json': |
| 12 continue | 12 continue |
| 13 filename = os.path.join(dirpath, f) | 13 filename = os.path.join(dirpath, f) |
| 14 results.append(filename) | 14 results.append(filename) |
| 15 return results | 15 return results |
| OLD | NEW |