def run_cmd(self, *cmd):
    cmd = self.parse_cmd(cmd)
    working_dir = (self.builder.project_path if ((self.builder.project_path != None) and (self.builder.project_path != '')) else None)
    process = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, cwd=working_dir)
    process.communicate()
    if (process.returncode != 0):
        return self._cmd_exit(process.returncode)
def run_cmd(self, *cmd):
    cmd = self.parse_cmd(cmd)
    working_dir = (self.builder.project_path if ((self.builder.project_path != None) and (self.builder.project_path != )) else None)
    process = subprocess.Popen(cmd, stdout=sys.stdout, stderr=sys.stderr, cwd=working_dir)
    process.communicate()
    if (process.returncode != 0):
        return self._cmd_exit(process.returncode)