MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / glob

Method glob

tools/python-3.11.9-amd64/Lib/msilib/__init__.py:380–393  ·  view source on GitHub ↗

Add a list of files to the current component as specified in the glob pattern. Individual files can be excluded in the exclude list.

(self, pattern, exclude = None)

Source from the content-addressed store, hash-verified

378 return logical
379
380 def glob(self, pattern, exclude = None):
381 """Add a list of files to the current component as specified in the
382 glob pattern. Individual files can be excluded in the exclude list."""
383 try:
384 files = os.listdir(self.absolute)
385 except OSError:
386 return []
387 if pattern[:1] != '.':
388 files = (f for f in files if f[0] != '.')
389 files = fnmatch.filter(files, pattern)
390 for f in files:
391 if exclude and f in exclude: continue
392 self.add_file(f)
393 return files
394
395 def remove_pyc(self):
396 "Remove .pyc files on uninstall"

Callers 12

listiconsFunction · 0.45
find_data_filesMethod · 0.45
find_package_modulesMethod · 0.45
fetch_build_eggFunction · 0.45
_get_dist_info_dirMethod · 0.45
_msvc14_find_vcvarsallFunction · 0.45
_find_egg_info_dirMethod · 0.45
finalize_optionsMethod · 0.45
do_egg_installMethod · 0.45
find_data_filesMethod · 0.45
find_package_modulesMethod · 0.45
__init__.pyFile · 0.45

Calls 3

add_fileMethod · 0.95
listdirMethod · 0.80
filterMethod · 0.45

Tested by

no test coverage detected