def _make_script(self, name, execpath=False): script = self.traitscripts.get(name) if script is not None: stmt = '%s script exists for trait %s' % (name, self._current_trait_) self.log.info(stmt) return make_script(name, script, self.target, execpath=execpath) else: return None
def _make_script(self, name): script = self.machine.get_script(name) if script is not None: return make_script(name, script, '/') else: return None