def getRenderingFor(self, build): # Upcall the base class first. p = WithProperties.getRenderingFor(self, build) # Then we need to normalize the path for # watever is native on the buildslave. # Note: Do not call normpath here, as it could # change the path meaning if links used. slave = build.build.slavebuilder.slave return slave.path_module.normcase(p)
def getRenderingFor(self, build): origfmtstring = self.fmtstring if isinstance(origfmtstring, WithProperties): self.fmtstring = origfmtstring.getRenderingFor(build) try: ret = WithProperties.getRenderingFor(self, build) finally: self.fmtstring = origfmtstring return ret
def getRenderingFor(self, build): # Upcall the base class first. p = WithProperties.getRenderingFor(self, build) # Then we need to normalize the path for # watever is native on the buildslave. # Note: Do not call normpath here, as it could # change the path meaning if links used. slave = build.build.slavebuilder.slave return slave.path_module.normcase(p)
def getRenderingFor(self, build): # Upcall the base class first. p = WithProperties.getRenderingFor(self, build) # Then we need to figure out the buildslave OS: slave = build.build.slavebuilder.slave if slave.slave_system == 'posix': # Note: Do not call normpath here, as it could # change the path meaning if links used. p = slave.path_module.normcase(p) elif slave.slave_system in ('win32', 'nt'): # Preserve the case, only replace # the path separator to the POSIX one. p = p.replace('\\', '/') else: # Return the string as is. pass return p
def getRenderingFor(self, build): # Upcall the base class first. p = WithProperties.getRenderingFor(self, build) # Then we need to figure out the buildslave OS: slave = build.build.slavebuilder.slave if slave.slave_system == 'posix': # Note: Do not call normpath here, as it could # change the path meaning if links used. p = slave.path_module.normcase(p) elif slave.slave_system in ('win32', 'nt'): # Normalize the path first, then replace # the path separator to the POSIX one. p = slave.path_module.normcase(p).replace('\\','/') else: # Return the string as is. pass return p