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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/skpbench/_adb_path.py ('k') | tools/skpbench/skpbench.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skpbench/_os_path.py
diff --git a/tools/skpbench/_os_path.py b/tools/skpbench/_os_path.py
new file mode 100644
index 0000000000000000000000000000000000000000..42b1c42bf2ee64c980ffa9cacebf5b3be38e944a
--- /dev/null
+++ b/tools/skpbench/_os_path.py
@@ -0,0 +1,22 @@
+# Copyright 2016 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+from os import path
+import glob
+
+def join(*pathnames):
+ return path.join(*pathnames)
+
+def basename(pathname):
+ return pathname.basename(pathname)
+
+def find_skps(skps):
+ pathnames = list()
+ for skp in skps:
+ if (path.isdir(skp)):
+ pathnames.extend(glob.iglob(path.join(skp, '*.skp')))
+ else:
+ pathnames.append(skp)
+ return pathnames
« 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