:\cygwin\cygdrive :\cygwin\dev :\cygwin\dev\mqueue :\cygwin\dev\shm :\cygwin\etc many more lines omitted by bytes [( ' :\\cygwin\\\python \\python-\\lib\\build_class py')( ' :\\cygwin\\\python \\python-\\lib\\email\\mime\\__init__ py')( ' :\\cygwin\\\python \\python-\\lib\\email\\test\\__init__ py')[( ' :\\python \\lib\\pydoc_data\\topics py')( ' :\\\install\\source\\python- \\lib\\pydoc_topics py')( ' :\\python \\lib\\pydoc_topics py')by lines [( ' :\\cygwin\\\python \\python-\\lib\\build_class py')( ' :\\cygwin\\\python \\python-\\lib\\email\\mime\\__init__ py')( ' :\\cygwin\\\python \\python-\\lib\\email\\test\\__init__ py')[( ' :\\install\\source\\python- \\lib\\decimal py')( ' :\\cygwin\\\python \\python-\\lib\\decimal py')( ' :\\python \\lib\\decimal py')the script' trace logic is preset to allow you to monitor its directory progress 've shortened some directory names to protect the innocent here (and to fit on this pagethis command may take long time to finish on your computer--on my sadly underpowered windows netbookit took minutes to scan solid state drive with some of data filesand directories when the system was lightly loaded ( minutes when not tracing directory namesbut half an hour when many other applications were runningneverthelessit provides the most exhaustive solution to the original query of all our attempts this is also as complete solution as we have space for in this book for more funconsider that you may need to scan more than one driveand some python source files may also appear in zip archivesboth on the module path or not (os walk silently ignores zip files in example - they might also be named in other ways--with pyw extensions to suppress shell pop ups on windowsand with arbitrary extensions for some top-level scripts in facttop-level scripts might have no filename extension at alleven though they are python source files and while they're generally not python filessome importable modules may also appear in frozen binaries or be statically linked into the python executable in the interest of spacewe'll leave such higher resolution (and potentially intractable!search extensions as suggested exercises printing unicode filenames one fine point before we move onnotice the seemingly superfluous exception handling in example - ' tryprint function when first tried to scan an entire drive as shown in the preceding sectionthis script died on unicode encoding error while trying to quick game of "find the biggest python file