Skip to content

Commit

Permalink
Merge pull request #9256 from madhavajay/madhava/test_fix
Browse files Browse the repository at this point in the history
Fix for base condition where there is no root dir
  • Loading branch information
madhavajay authored Sep 4, 2024
2 parents 5cfc524 + 686e422 commit 91e98f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/syft/src/syft/util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,7 @@ def find_base_dir_with_tox_ini(start_path: str = ".") -> str | None:
def get_all_config_files(base_path: str, current_path: str) -> list[str]:
config_files = []
current_path = os.path.abspath(current_path)
base_path = os.path.abspath(base_path)

while current_path.startswith(base_path):
config_file = os.path.join(current_path, "settings.yaml")
Expand Down

0 comments on commit 91e98f7

Please sign in to comment.