mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 01:04:45 +03:00
Allowed for wildcard paths in multiple platforms in pilfile script
This commit is contained in:
parent
4d234fb54d
commit
d0fc67ff37
|
@ -67,15 +67,13 @@ logging.basicConfig(level=logging_level)
|
|||
|
||||
def globfix(files):
|
||||
# expand wildcards where necessary
|
||||
if sys.platform == "win32":
|
||||
out = []
|
||||
for file in files:
|
||||
if glob.has_magic(file):
|
||||
out.extend(glob.glob(file))
|
||||
else:
|
||||
out.append(file)
|
||||
return out
|
||||
return files
|
||||
out = []
|
||||
for file in files:
|
||||
if glob.has_magic(file):
|
||||
out.extend(glob.glob(file))
|
||||
else:
|
||||
out.append(file)
|
||||
return out
|
||||
|
||||
for file in globfix(args):
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue
Block a user