Merge pull request #22289 from achernev/develop

Expand glob patterns in the path argument of file.find
This commit is contained in:
Thomas S Hatch 2015-04-02 12:53:07 -06:00
commit 368bfa377e

View File

@ -686,7 +686,7 @@ def find(path, *args, **kwargs):
except ValueError as ex:
return 'error: {0}'.format(ex)
ret = [p for p in finder.find(os.path.expanduser(path))]
ret = [item for i in [finder.find(p) for p in glob.glob(os.path.expanduser(path))] for item in i]
ret.sort()
return ret