tools/cygprofile/orderfile_generator_backend.py
def _UnstashOutputDirectory(buildpath):
  """Inverse of _StashOutputDirectory.

  Moves the output directory stashed within the default output directory
  (out/Release) to the position where the builds can actually happen.

  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(stashpath):
    return
  if os.path.exists(buildpath):
    shutil.rmtree(buildpath, ignore_errors=True)
  shutil.move(stashpath, buildpath)
Inverse of _StashOutputDirectory.

  Moves the output directory stashed within the default output directory
  (out/Release) to the position where the builds can actually happen.

  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.
  


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.
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 _UnstashOutputDirectory(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(stashpath):
    return
  if os.path.exists(buildpath):
    shutil.rmtree(buildpath, ignore_errors=True)
  shutil.move(stashpath, buildpath)
def _UnstashOutputDirectory ( 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 ( stashpath ) : return if os . path . exists ( buildpath ) : shutil . rmtree ( buildpath , ignore_errors = True ) shutil . move ( stashpath , buildpath )
Inverse of _StashOutputDirectory.
Inverse of _StashOutputDirectory .
"""Inverse of _StashOutputDirectory.

  Moves the output directory stashed within the default output directory
  (out/Release) to the position where the builds can actually happen.

  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 .