blob: 42b1c42bf2ee64c980ffa9cacebf5b3be38e944a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|