def _setupTempDirectory(filename):
tmpDir = tempfile.mkdtemp()<EOL>tmpFileName = os.path.join(tmpDir, os.path.basename(filename))<EOL>return tmpDir, tmpFileName<EOL>
Create a temp directory, and return path to filename in that directory