Skip to content

Commit

Permalink
fix: Fix resolving of relative paths containing .. when not using t…
Browse files Browse the repository at this point in the history
…he `resolve_casing` option.

Refs: #435
  • Loading branch information
priscavdsluis committed Apr 11, 2023
1 parent 314564a commit dd1b522
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hydrolib/core/basemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,8 @@ def __init__(
self._absolute_anchor_path = context.get_current_parent()
loading_path = context.resolve(filepath)
loading_path = context.resolve_casing(loading_path)
filepath = self._get_updated_file_path(filepath, loading_path)
if context.load_settings.resolve_casing:
filepath = self._get_updated_file_path(filepath, loading_path)

logger.info(f"Loading data from {filepath}")

Expand Down

0 comments on commit dd1b522

Please sign in to comment.