def _find_tcl_tk_darwin_frameworks(binaries):
 tcl_root = tk_root = None
 for (nm, fnm) in binaries:
  if (nm == 'Tcl'):
   tcl_root = os.path.join(os.path.dirname(fnm), 'Resources/Scripts')
  elif (nm == 'Tk'):
   tk_root = os.path.join(os.path.dirname(fnm), 'Resources/Scripts')
 return (tcl_root, tk_root)

def _find_tcl_tk_darwin_frameworks ( binaries ) : tcl_root = tk_root = None for ( nm , fnm ) in binaries : if ( nm == 'Tcl' ) : tcl_root = os . path . join ( os . path . dirname ( fnm ) , 'Resources/Scripts' ) elif ( nm == 'Tk' ) : tk_root = os . path . join ( os . path . dirname ( fnm ) , 'Resources/Scripts' ) return ( tcl_root , tk_root )
get an os x-specific 2-tuple of the absolute paths of the top-level external data directories for both tcl and tk .