def start(self):
bookname = self.args.get('<STR_LIT>', None)<EOL>if not bookname:<EOL><INDENT>bookname = '<STR_LIT>'<EOL><DEDENT>project_dir = self.args.get('<STR_LIT>', None)<EOL>if not project_dir:<EOL><INDENT>project_dir = join(self.cwd, '<STR_LIT>')<EOL><DEDENT>project_dir = abspath(project_dir)<EOL>if not exists(project_dir) or self.args['<STR_LIT>']:<EOL><INDENT>if exists(project_dir):<EOL><INDENT>if yesno(warning(<EOL>'<STR_LIT>'<EOL>% project_dir)):<EOL><INDENT>shutil.rmtree(project_dir)<EOL><DEDENT>else:<EOL><INDENT>sys.exit(error('<STR_LIT>'))<EOL><DEDENT><DEDENT>os.makedirs(project_dir)<EOL>os.makedirs(join(project_dir, '<STR_LIT>'))<EOL>with codecs.open(<EOL>join(project_dir, bookname), '<STR_LIT:w>', encoding="<STR_LIT>") as fd:<EOL><INDENT>fd.write(
Start the project on the directory