def _run_boot_script(boot_script_name):
    script = os.path.join(LOCAL_PATH, boot_script_name)
    log.info("Running boot script '%s'" % script)
    process = subprocess.Popen(script, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
    stdout, stderr = process.communicate()
    if process.returncode == 0:
        log.debug(script % "Successfully ran boot script '%s'")
        return True
    else:
        log.error("Error running boot script '%s'. Process returned code '%s' and following stderr: %s"
            % (script, process.returncode, stderr))
        return False
dataset/ETHPy150Open chapmanb/cloudbiolinux/installed_files/ec2autorun.py/_run_boot_script/swapped operands of `%`