tools/cygprofile/orderfile_generator_backend.py
def _StashOutputDirectory(buildpath):
  """Takes the output directory and stashes it in the default output directory.

  This allows it to be used for incremental builds next time (after unstashing)
  by keeping it in a place that isn't deleted normally, while also ensuring
  that it is properly clobbered when appropriate.

  This is a dirty hack to deal with the needs of clobbering while also handling
  incremental builds and the hardcoded relative paths used in some of the
  project files.

  Args:
    buildpath: The path where the building happens.  If this corresponds to the
               default output directory, no action is taken.
  """
  if os.path.abspath(buildpath) == os.path.abspath(os.path.dirname(
      constants.GetOutDirectory())):
    return
  name = os.path.basename(buildpath)
  stashpath = os.path.join(constants.GetOutDirectory(), name)
  if not os.path.exists(buildpath):
    return
  if os.path.exists(stashpath):
    shutil.rmtree(stashpath, ignore_errors=True)
  shutil.move(buildpath, stashpath)
Takes the output directory and stashes it in the default output directory.

  This allows it to be used for incremental builds next time (after unstashing)
  by keeping it in a place that isn't deleted normally, while also ensuring
  that it is properly clobbered when appropriate.

  This is a dirty hack to deal with the needs of clobbering while also handling
  incremental builds and the hardcoded relative paths used in some of the
  project files.

  Args:
    buildpath: The path where the building happens.  If this corresponds to the
               default output directory, no action is taken.
  
Takes the output directory and stashes it in the default output directory.
This allows it to be used for incremental builds next time (after unstashing)
by keeping it in a place that isn't deleted normally, while also ensuring
that it is properly clobbered when appropriate.

This is a dirty hack to deal with the needs of clobbering while also handling
incremental builds and the hardcoded relative paths used in some of the
project files.
Takes the output directory and stashes it in the default output directory . This allows it to be used for incremental builds next time ( after unstashing ) by keeping it in a place that isn ' t deleted normally while also ensuring that it is properly clobbered when appropriate . This is a dirty hack to deal with the needs of clobbering while also handling incremental builds and the hardcoded relative paths used in some of the project files .
def _StashOutputDirectory(buildpath):
  if os.path.abspath(buildpath) == os.path.abspath(os.path.dirname(
      constants.GetOutDirectory())):
    return
  name = os.path.basename(buildpath)
  stashpath = os.path.join(constants.GetOutDirectory(), name)
  if not os.path.exists(buildpath):
    return
  if os.path.exists(stashpath):
    shutil.rmtree(stashpath, ignore_errors=True)
  shutil.move(buildpath, stashpath)
def _StashOutputDirectory ( buildpath ) : if os . path . abspath ( buildpath ) == os . path . abspath ( os . path . dirname ( constants . GetOutDirectory ( ) ) ) : return name = os . path . basename ( buildpath ) stashpath = os . path . join ( constants . GetOutDirectory ( ) , name ) if not os . path . exists ( buildpath ) : return if os . path . exists ( stashpath ) : shutil . rmtree ( stashpath , ignore_errors = True ) shutil . move ( buildpath , stashpath )
Takes the output directory and stashes it in the default output directory.
Takes the output directory and stashes it in the default output directory .
"""Takes the output directory and stashes it in the default output directory.

  This allows it to be used for incremental builds next time (after unstashing)
  by keeping it in a place that isn't deleted normally, while also ensuring
  that it is properly clobbered when appropriate.

  This is a dirty hack to deal with the needs of clobbering while also handling
  incremental builds and the hardcoded relative paths used in some of the
  project files.

  Args:
    buildpath: The path where the building happens.  If this corresponds to the
               default output directory, no action is taken.
  """
buildpath
The path where the building happens.  If this corresponds to the
default output directory, no action is taken.
The path where the building happens . If this corresponds to the default output directory no action is taken .