The os module provides dozens of functions for interacting with
the operating system: >>> import os >>> os.getcwd() # Return the
current working directory 'C:\\Python33' >>>
os.chdir('/server/accesslogs') # Change current working
directory >>> os.system('mkdir today') # Run the command mkdir
in the system shell 0 >>> import os >>> dir(os) <returns a list
of all module functions> >>> help(os) <returns an extensive
manual page created from the module's docstrings> For daily file
and directory management tasks, the shutil module provides a
higher level interface that is easier to use: >>> import shutil
>>> shutil.copyfile('data.db', 'archive.db') >>>
shutil.move('/build/executables', 'installdir') The glob module
provides a function for making file lists from directory
wildcard searches: >>> import glob >>> glob.glob('*.py')
['primes.py', 'random.py', 'quote.py'] Common utility scripts
often need to process command line arguments. These arguments
are stored in the sys module’s argv attribute as a list. For
insta