parameters: (self)
return_statement: return self.target_path_
docstring: Computes the target path that should be used for 
              target with these properties.
              Returns a tuple of
                - the computed path
                - if the path is relative to build directory, a value of
                  'true'.
docstring_summary: Computes the target path that should be used for 
              target with these properties.
              Returns a tuple of
                - the computed path
                - if the path is relative to build directory, a value of
                  'true'.
docstring_tokens: Computes the target path that should be used for target with these properties . Returns a tuple of - the computed path - if the path is relative to build directory a value of true .
function: def target_path (self):
          """ Computes the target path that should be used for 
              target with these properties.
              Returns a tuple of
                - the computed path
                - if the path is relative to build directory, a value of
                  'true'. 
          """
          if not self.target_path_:
              # The <location> feature can be used to explicitly
              # change the location of generated targets
              l = self.get ('<location>')
              if l:
                  computed = l[0]
                  is_relative = False
  
              else:
                  p = self.as_path ()
                  
                  # Really, an ugly hack. Boost regression test system requires
                  # specific target paths, and it seems that changing it to handle
                  # other directory layout is really hard. For that reason,
                  # we teach V2 to do the things regression system requires.
                  # The value o '<location-prefix>' is predended to the path.
                  prefix = self.get ('<location-prefix>')
                  
                  if prefix:
                      if len (prefix) > 1:
                          raise AlreadyDefined ("Two <location-prefix> properties specified: '%s'" % prefix)
                          
                      computed = os.path.join(prefix[0], p)
  
                  else:
                      computed = p
  
                  if not computed:
                      computed = "."
  
                  is_relative = True
  
              self.target_path_ = (computed, is_relative)
  
          return self.target_path_
function_tokens: def target_path ( self ) : if not self . target_path_ : # The <location> feature can be used to explicitly # change the location of generated targets l = self . get ( '<location>' ) if l : computed = l [ 0 ] is_relative = False else : p = self . as_path ( ) # Really, an ugly hack. Boost regression test system requires # specific target paths, and it seems that changing it to handle # other directory layout is really hard. For that reason, # we teach V2 to do the things regression system requires. # The value o '<location-prefix>' is predended to the path. prefix = self . get ( '<location-prefix>' ) if prefix : if len ( prefix ) > 1 : raise AlreadyDefined ( "Two <location-prefix> properties specified: '%s'" % prefix ) computed = os . path . join ( prefix [ 0 ] , p ) else : computed = p if not computed : computed = "." is_relative = True self . target_path_ = ( computed , is_relative ) return self . target_path_