A Byte of Python

The os module

This module represents generic operating system functionality. This module is especially important if you want to make your programs platform-independent i.e. it allows the program to be written such that it will run on Linux as well as Windows without any problems and without requiring changes. An example of this is using the os.sep variable instead of the operation system-specific path separator.

Some of the more useful parts of the os module are listed below Most of them are self-explanatory.

You can explore the Python Standard Documentation for more details on these functions and variables. You can use help(sys), etc. as well.