yandextank/core/tankcore.py
def mkstemp(self, suffix, prefix, directory=None):
        """
        Generate temp file name in artifacts base dir
        and close temp file handle
        """
        if not directory:
            directory = self.artifacts_dir
        fd, fname = tempfile.mkstemp(suffix, prefix, directory)
        os.close(fd)
        os.chmod(fname, 0o644)  # FIXME: chmod to parent dir's mode?
        return fname
def mkstemp(self, suffix, prefix, directory=None):
        if not directory:
            directory = self.artifacts_dir
        fd, fname = tempfile.mkstemp(suffix, prefix, directory)
        os.close(fd)
        os.chmod(fname, 0o644)  # FIXME: chmod to parent dir's mode?
        return fname
def mkstemp ( self , suffix , prefix , directory = None ) : if not directory : directory = self . artifacts_dir fd , fname = tempfile . mkstemp ( suffix , prefix , directory ) os . close ( fd ) os . chmod ( fname , 0o644 ) # FIXME: chmod to parent dir's mode? return fname
Generate temp file name in artifacts base dir
        and close temp file handle
Generate temp file name in artifacts base dir and close temp file handle