def clean():
        """Clear out any old screenshots"""
        screenshot_dir = settings.SELENIUM_SCREENSHOT_DIR
        if screenshot_dir and os.path.isdir(screenshot_dir):
            rmtree(screenshot_dir, ignore_errors=True)
def clean ( ) : screenshot_dir = settings . SELENIUM_SCREENSHOT_DIR if screenshot_dir and os . path . isdir ( screenshot_dir ) : rmtree ( screenshot_dir , ignore_errors = True )
Clear out any old screenshots