parameters: (self, ps)
return_statement: return ps
docstring: If <location> is not set, sets it based on the project data.
docstring_summary: If <location> is not set, sets it based on the project data.
docstring_tokens: If <location > is not set sets it based on the project data .
function: def update_location(self, ps):
          """If <location> is not set, sets it based on the project data."""
  
          loc = ps.get('location')
          if not loc:
              loc = os.path.join(self.project().get('location'), self.name())
              ps = ps.add_raw(["<location>" + loc])
  
          return ps
function_tokens: def update_location ( self , ps ) : loc = ps . get ( 'location' ) if not loc : loc = os . path . join ( self . project ( ) . get ( 'location' ) , self . name ( ) ) ps = ps . add_raw ( [ "<location>" + loc ] ) return ps