diff --git a/bindings/Sofa/src/SofaPython3/Sofa/Helper/System/Binding_FileRepository.cpp b/bindings/Sofa/src/SofaPython3/Sofa/Helper/System/Binding_FileRepository.cpp index 6cd5e08cb..ff71fca17 100644 --- a/bindings/Sofa/src/SofaPython3/Sofa/Helper/System/Binding_FileRepository.cpp +++ b/bindings/Sofa/src/SofaPython3/Sofa/Helper/System/Binding_FileRepository.cpp @@ -82,7 +82,7 @@ void moduleAddFileRepository(py::module &m) { file_repository.def_static( "relativeToPath", &sofa::helper::system::FileRepository::relativeToPath, - py::arg("path").none(false), py::arg("refPath").none(false), py::arg("doLowerCaseOnWin32") = true, + py::arg("path").none(false), py::arg("refPath").none(false), doc::FileRepository::relativeToPath ); diff --git a/bindings/Sofa/src/SofaPython3/Sofa/Helper/System/Binding_FileRepository_doc.h b/bindings/Sofa/src/SofaPython3/Sofa/Helper/System/Binding_FileRepository_doc.h index 6c083ac5c..8707b65dd 100644 --- a/bindings/Sofa/src/SofaPython3/Sofa/Helper/System/Binding_FileRepository_doc.h +++ b/bindings/Sofa/src/SofaPython3/Sofa/Helper/System/Binding_FileRepository_doc.h @@ -82,9 +82,6 @@ static auto relativeToPath = R"( Returns a string such as refPath + string = path if path contains refPath. Otherwise returns path. -On WIN32 the implementation was also returning the path in lower case. This behavior is now -deprecated and should be remove the 2018-05-01. Until this date new implementation can be -used by setting doLowerCaseOnWin32=false; )"; static auto getPathsJoined = diff --git a/docs/sphinx-stubs/Sofa/Helper/System/__init__.pyi b/docs/sphinx-stubs/Sofa/Helper/System/__init__.pyi index ecc587d05..61f2d8a81 100644 --- a/docs/sphinx-stubs/Sofa/Helper/System/__init__.pyi +++ b/docs/sphinx-stubs/Sofa/Helper/System/__init__.pyi @@ -96,13 +96,10 @@ class FileRepository(): Print the list of path to std::cout. """ @staticmethod - def relativeToPath(path: str, refPath: str, doLowerCaseOnWin32: bool = True) -> str: + def relativeToPath(path: str, refPath: str) -> str: """ Returns a string such as refPath + string = path if path contains refPath. Otherwise returns path. - On WIN32 the implementation was also returning the path in lower case. This behavior is now - deprecated and should be remove the 2018-05-01. Until this date new implementation can be - used by setting doLowerCaseOnWin32=false; """ def removePath(self, path: str) -> None: """