1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 import os 5 6 def GetAllPageSetFilenames(): 7 results = [] 8 start_dir = os.path.dirname(__file__) 9 for dirpath, _, filenames in os.walk(start_dir): 10 for f in filenames: 11 if os.path.splitext(f)[1] != '.json': 12 continue 13 filename = os.path.join(dirpath, f) 14 results.append(filename) 15 return results 16