def run(self, command, variables=[], board=None, packages=[]):
<EOL>if not isfile(util.safe_join(util.get_project_dir(), '<STR_LIT>')):<EOL><INDENT>variables += ['<STR_LIT>']<EOL>variables += [util.safe_join(<EOL>util.get_folder('<STR_LIT>'), '<STR_LIT>')]<EOL><DEDENT>else:<EOL><INDENT>click.secho('<STR_LIT>')<EOL><DEDENT>if self.profile.check_exe_default():<EOL><INDENT>if not util.resolve_packages(<EOL>packages,<EOL>self.profile.packages,<EOL>self.resources.distribution.get('<STR_LIT>')<EOL>):<EOL><INDENT>raise Exception<EOL><DEDENT><DEDENT>else:<EOL><INDENT>click.secho('<STR_LIT>')<EOL><DEDENT>return self._execute_scons(command, variables, board)<EOL>
Executes scons for building