parameters: (self, framework, version)
docstring: Takes a path to Something.framework and the Current version of that and
      sets up all the symlinks.
docstring_summary: Takes a path to Something.framework and the Current version of that and
      sets up all the symlinks.
docstring_tokens: Takes a path to Something . framework and the Current version of that and sets up all the symlinks .
function: def ExecPackageFramework(self, framework, version):
          """Takes a path to Something.framework and the Current version of that and
      sets up all the symlinks."""
          # Find the name of the binary based on the part before the ".framework".
          binary = os.path.basename(framework).split(".")[0]
  
          CURRENT = "Current"
          RESOURCES = "Resources"
          VERSIONS = "Versions"
  
          if not os.path.exists(os.path.join(framework, VERSIONS, version, binary)):
              # Binary-less frameworks don't seem to contain symlinks (see e.g.
              # chromium's out/Debug/org.chromium.Chromium.manifest/ bundle).
              return
  
          # Move into the framework directory to set the symlinks correctly.
          pwd = os.getcwd()
          os.chdir(framework)
  
          # Set up the Current version.
          self._Relink(version, os.path.join(VERSIONS, CURRENT))
  
          # Set up the root symlinks.
          self._Relink(os.path.join(VERSIONS, CURRENT, binary), binary)
          self._Relink(os.path.join(VERSIONS, CURRENT, RESOURCES), RESOURCES)
  
          # Back to where we were before!
          os.chdir(pwd)
function_tokens: def ExecPackageFramework ( self , framework , version ) : # Find the name of the binary based on the part before the ".framework". binary = os . path . basename ( framework ) . split ( "." ) [ 0 ] CURRENT = "Current" RESOURCES = "Resources" VERSIONS = "Versions" if not os . path . exists ( os . path . join ( framework , VERSIONS , version , binary ) ) : # Binary-less frameworks don't seem to contain symlinks (see e.g. # chromium's out/Debug/org.chromium.Chromium.manifest/ bundle). return # Move into the framework directory to set the symlinks correctly. pwd = os . getcwd ( ) os . chdir ( framework ) # Set up the Current version. self . _Relink ( version , os . path . join ( VERSIONS , CURRENT ) ) # Set up the root symlinks. self . _Relink ( os . path . join ( VERSIONS , CURRENT , binary ) , binary ) self . _Relink ( os . path . join ( VERSIONS , CURRENT , RESOURCES ) , RESOURCES ) # Back to where we were before! os . chdir ( pwd )