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