(self, strict=False)
return p
Make the path absolute, resolving all symlinks on the way and also
        normalizing it (for example turning slashes into backslashes under
        Windows).
Make the path absolute, resolving all symlinks on the way and also
        normalizing it (for example turning slashes into backslashes under
        Windows).
Make the path absolute resolving all symlinks on the way and also normalizing it ( for example turning slashes into backslashes under Windows ) .
def resolve(self, strict=False):
        """
        Make the path absolute, resolving all symlinks on the way and also
        normalizing it (for example turning slashes into backslashes under
        Windows).
        """

        def check_eloop(e):
            winerror = getattr(e, 'winerror', 0)
            if e.errno == ELOOP or winerror == _WINERROR_CANT_RESOLVE_FILENAME:
                raise RuntimeError("Symlink loop from %r" % e.filename)

        try:
            s = self._accessor.realpath(self, strict=strict)
        except OSError as e:
            check_eloop(e)
            raise
        p = self._from_parts((s,))

        # In non-strict mode, realpath() doesn't raise on symlink loops.
        # Ensure we get an exception by calling stat()
        if not strict:
            try:
                p.stat()
            except OSError as e:
                check_eloop(e)
        return p
def resolve ( self , strict = False ) : def check_eloop ( e ) : winerror = getattr ( e , 'winerror' , 0 ) if e . errno == ELOOP or winerror == _WINERROR_CANT_RESOLVE_FILENAME : raise RuntimeError ( "Symlink loop from %r" % e . filename ) try : s = self . _accessor . realpath ( self , strict = strict ) except OSError as e : check_eloop ( e ) raise p = self . _from_parts ( ( s , ) ) # In non-strict mode, realpath() doesn't raise on symlink loops. # Ensure we get an exception by calling stat() if not strict : try : p . stat ( ) except OSError as e : check_eloop ( e ) return p