sure enough--the prior section' script found smallest and largest files in subdirectories while searching python' entire standard library tree this way is more inclusiveit' still incompletethere may be additional modules installed elsewhere on your computerwhich are accessible from the module import search path but outside python' source tree to be more exhaustivewe could instead essentially perform the same tree searchbut for every directory on the module import search path example - adds this extension to include every importable python-coded module on your computer-located both on the path directly and nested in package directory trees example - pp \system\filetools\bigpy-path py ""find the largest python source file on the module import search path skip already-visited directoriesnormalize path and case so they will match properlyand include line counts in pprinted result it' not enough to use os environ['pythonpath']this is subset of sys path ""import sysospprint trace =dirs =+files visited {allsizes [for srcdir in sys pathfor (thisdirsubsherefilesherein os walk(srcdir)if trace print(thisdirthisdir os path normpath(thisdirfixcase os path normcase(thisdirif fixcase in visitedcontinue elsevisited[fixcasetrue for filename in fileshereif filename endswith(py')if trace print('filenamepypath os path join(thisdirfilenametrypysize os path getsize(pypathexcept os errorprint('skipping'pypathsys exc_info()[ ]elsepylines len(open(pypath'rb'readlines()allsizes append((pysizepylinespypath)print('by size 'allsizes sort(pprint pprint(allsizes[: ]pprint pprint(allsizes[- :]print('by lines 'allsizes sort(key=lambda xx[ ] complete system programs