Do glob expansion for each element in `args` and return a flattened list. Unmatched glob pattern will remain as-is in the returned list.
(args)
| 312 | |
| 313 | |
| 314 | def shellglob(args): |
| 315 | """ |
| 316 | Do glob expansion for each element in `args` and return a flattened list. |
| 317 | |
| 318 | Unmatched glob pattern will remain as-is in the returned list. |
| 319 | |
| 320 | """ |
| 321 | expanded = [] |
| 322 | # Do not unescape backslash in Windows as it is interpreted as |
| 323 | # path separator: |
| 324 | unescape = unescape_glob if sys.platform != 'win32' else lambda x: x |
| 325 | for a in args: |
| 326 | expanded.extend(glob.glob(a) or [unescape(a)]) |
| 327 | return expanded |
| 328 | |
| 329 | |
| 330 | def target_outdated(target,deps): |