Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
5 changes: 1 addition & 4 deletions docs/sphinx-stubs/Sofa/Helper/System/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
"""
Expand Down