parameters: (self, path)
return_statement: return path
docstring: Do :standardizepath processing for path.
docstring_summary: Do :standardizepath processing for path.
docstring_tokens: Do : standardizepath processing for path .
function: def _StandardizePath(self, path):
      """Do :standardizepath processing for path."""
      # I'm not quite sure what :standardizepath does. Just call normpath(),
      # but don't let @executable_path/../foo collapse to foo.
      if '/' in path:
        prefix, rest = '', path
        if path.startswith('@'):
          prefix, rest = path.split('/', 1)
        rest = os.path.normpath(rest)  # :standardizepath
        path = os.path.join(prefix, rest)
      return path
function_tokens: def _StandardizePath ( self , path ) : # I'm not quite sure what :standardizepath does. Just call normpath(), # but don't let @executable_path/../foo collapse to foo. if '/' in path : prefix , rest = '' , path if path . startswith ( '@' ) : prefix , rest = path . split ( '/' , 1 ) rest = os . path . normpath ( rest ) # :standardizepath path = os . path . join ( prefix , rest ) return path