()
Dump the current directory as HTML.
Dump the current directory as HTML.
Dump the current directory as HTML .
def print_directory():
    """Dump the current directory as HTML."""
    print()
    print("<H3>Current Working Directory:</H3>")
    try:
        pwd = os.getcwd()
    except OSError as msg:
        print("OSError:", html.escape(str(msg)))
    else:
        print(html.escape(pwd))
    print()
def print_directory ( ) : print ( ) print ( "<H3>Current Working Directory:</H3>" ) try : pwd = os . getcwd ( ) except OSError as msg : print ( "OSError:" , html . escape ( str ( msg ) ) ) else : print ( html . escape ( pwd ) ) print ( )