From: Dmitry Selyutin Date: Tue, 17 Oct 2017 21:09:46 +0000 (+0300) Subject: vfs: normalize paths X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f222e06115d2c1f55727b1f20e25bceea36d7ca;p=thirdparty%2Fgnulib.git vfs: normalize paths --- diff --git a/pygnulib/vfs.py b/pygnulib/vfs.py index b73c96bd09..2cdb5eb103 100644 --- a/pygnulib/vfs.py +++ b/pygnulib/vfs.py @@ -59,7 +59,8 @@ class Base: part = self.__table[part] replaced = True parts += [part] - return _os_.path.sep.join([self.__path] + parts) + path = _os_.path.sep.join([self.__path] + parts) + return _os_.path.normpath(path) @property