f7cf794890
Change-Id: I6009dfc7c6eabe04b3b6fdf68f38995d718b4fef Reviewed-on: https://skia-review.googlesource.com/c/skia/+/235278 Commit-Queue: Nathaniel Nifong <nifong@google.com> Reviewed-by: Ben Wagner aka dogben <benjaminwagner@google.com>
24 lines
548 B
Python
24 lines
548 B
Python
# 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')))
|
|
pathnames.extend(glob.iglob(path.join(skp, '*.mskp')))
|
|
else:
|
|
pathnames.append(skp)
|
|
return pathnames
|