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

Side by Side Diff: tools/skpbench/_os_path.py

Issue 2350003002: Add adb support to skpbench (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « tools/skpbench/_adb_path.py ('k') | tools/skpbench/skpbench.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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
OLDNEW
« no previous file with comments | « tools/skpbench/_adb_path.py ('k') | tools/skpbench/skpbench.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698