def gettemp(basename):
 exec_dir = os.path.dirname(sys.executable)
 file_onedir = os.path.join(exec_dir, '..', '..', basename)
 file_onefile = os.path.join(exec_dir, '..', basename)
 if os.path.exists(file_onedir):
  return file_onedir
 else:
  return file_onefile

def gettemp ( basename ) : exec_dir = os . path . dirname ( sys . executable ) file_onedir = os . path . join ( exec_dir , '..' , '..' , basename ) file_onefile = os . path . join ( exec_dir , '..' , basename ) if os . path . exists ( file_onedir ) : return file_onedir else : return file_onefile
get the path to a temp file previously written by the temp runner .