def _setup_output(self, path, force):
<EOL>if os.path.isdir(path) or os.path.isfile(path):<EOL><INDENT>if force:<EOL><INDENT>logging.warn("<STR_LIT>" % path)<EOL>if os.path.isfile(path):<EOL><INDENT>os.remove(path)<EOL><DEDENT>else:<EOL><INDENT>shutil.rmtree(path)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise Exception("<STR_LIT>" % path)<EOL><DEDENT><DEDENT>
Clear the way for an output to be placed at path