Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 Google Inc. | |
| 2 # | |
| 3 # Use of this source code is governed by a BSD-style license that can be | |
| 4 # found in the LICENSE file. | |
| 5 | |
| 6 from os import path | |
| 7 import glob | |
| 8 | |
| 9 def join(*pathnames): | |
| 10 return path.join(*pathnames) | |
| 11 | |
| 12 def basename(pathname): | |
| 13 return pathname.basename(pathname) | |
| 14 | |
| 15 def find_skps(skps): | |
| 16 pathnames = list() | |
| 17 for skp in skps: | |
| 18 if (path.isdir(skp)): | |
| 19 pathnames.extend(glob.iglob(path.join(skp, '*.skp'))) | |
| 20 else: | |
| 21 pathnames.append(skp) | |
| 22 return pathnames | |
| OLD | NEW |