'Do :standardizepath processing for path.'

def _StandardizePath(self, path):

    if ('/' in path):
        (prefix, rest) = ('', path)
        if path.startswith('@'):
            (prefix, rest) = path.split('/', 1)
        rest = os.path.normpath(rest)
        path = os.path.join(prefix, rest)
    return path
