def set_options(self, *args, **options):
self.verbosity = int(options.get('<STR_LIT>', <NUM_LIT:1>))<EOL>if options.get("<STR_LIT>"):<EOL><INDENT>self.build_dir = options.get("<STR_LIT>")<EOL>settings.BUILD_DIR = self.build_dir<EOL><DEDENT>else:<EOL><INDENT>if not hasattr(settings, '<STR_LIT>'):<EOL><INDENT>raise CommandError(self.build_unconfig_msg)<EOL><DEDENT>self.build_dir = settings.BUILD_DIR<EOL><DEDENT>self.build_dir = smart_text(self.build_dir)<EOL>self.static_root = smart_text(settings.STATIC_ROOT)<EOL>self.media_root = smart_text(settings.MEDIA_ROOT)<EOL>self.app = apps.get_app_config("<STR_LIT>")<EOL>self.fs = self.app.filesystem<EOL>self.fs_name = self.app.filesystem_name<EOL>if not self.fs.exists(self.build_dir):<EOL><INDENT>self.fs.makedirs(self.build_dir)<EOL><DEDENT>if options.get('<STR_LIT>'):<EOL><INDENT>self.view_list = options['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>if not hasattr(settings, '<STR_LIT>'):<EOL><INDENT>raise CommandError(self.views_unconfig_msg)<EOL><DEDENT>self.view_list = settings.BAKERY_VIEWS<EOL><DEDENT>self.pooling = options.get('<STR_LIT>')<EOL>
Configure a few global options before things get going.