def _setupTempDirectory(filename):
 tmpDir = tempfile.mkdtemp()
 tmpFileName = os.path.join(tmpDir, os.path.basename(filename))
 return (tmpDir, tmpFileName)

def _setupTempDirectory ( filename ) : tmpDir = tempfile . mkdtemp ( ) tmpFileName = os . path . join ( tmpDir , os . path . basename ( filename ) ) return ( tmpDir , tmpFileName )
create a temp directory .