#NEWLINE# def remove_static_html( self , force = False ) : #NEWLINE# #INDENT# 'Removes the ``static`` directory from the current working\n        directory.\n\n        Parameters\n        ----------\n        force : boolean, optional, default=False\n            If true, no warning is issued before the removal of the\n            directory.\n\n        ' #NEWLINE# pydy_dir = os . path . join ( os . getcwd ( ) , self . pydy_directory ) #NEWLINE# if ( not os . path . exists ( pydy_dir ) ) : #NEWLINE# #INDENT# print ( 'All Done!' ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( not force ) : #NEWLINE# #INDENT# msg = "Are you sure you would like to delete the '{}' directory? [y|n]\n" #NEWLINE# ans = raw_input ( msg . format ( msg . pydy_directory ) ) #NEWLINE# if ( ans == 'y' ) : #NEWLINE# #INDENT# force = True #NEWLINE# #UNINDENT# #UNINDENT# if force : #NEWLINE# #INDENT# distutils . dir_util . remove_tree ( pydy_dir ) #NEWLINE# print ( 'All Done!' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# print ( 'Aborted!' )