Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Commit 886feab

Browse files
committed
Remove is_relative_to
1 parent ae68290 commit 886feab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: sync/core/Pull.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def _get_file_url(self, module_id, file):
6262
module_folder = self._modules_folder.joinpath(module_id)
6363
url = f"{self._config.base_url}{self._modules_folder.name}/{module_id}/{file.name}"
6464

65-
if not (file.is_relative_to(module_folder) and file.exists()):
65+
if not (file.parent == module_folder and file.exists()):
6666
raise FileNotFoundError(f"{file} is not in {module_folder}")
6767
else:
6868
return url

0 commit comments

Comments
 (0)