14.8. Related Modules

In Table 14.11 you will find a list of modules other than os and sys which relate to the execution environment theme of this chapter.

Table 14.11. Execution Environment Related Modules
ModuleDescription
popen2provides additional functionality on top of os.popen(): provides ability to communicate via standard files to the other process
commandsprovides additional functionality on top of os.system(): saves all program output in a string which is returned (as opposed to just dumping output to the screen)
getoptprocesses options and command-line arguments in such applications
siteprocesses site-specific modules or packages
findertoolsprovides an interface to Macintosh finder functionality, such as launching an application (or a document ...

Get Core Python Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.