Skip to content

Commit 7652321

Browse files
committed
Add comment
1 parent f84326a commit 7652321

File tree

1 file changed

+7
-0
lines changed
  • experimental/python/databricks/bundles

1 file changed

+7
-0
lines changed

experimental/python/databricks/bundles/build.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,13 @@ def _relativize_location(location: Location) -> Location:
528528

529529

530530
def _relativize_path(path: str) -> str:
531+
"""
532+
Attempt to relativize an absolute path to the current working directory.
533+
534+
If the path is not absolute or cannot be relativized, return it as is.
535+
Used to relativize paths in locations to show shorter paths in diagnostics.
536+
"""
537+
531538
if not os.path.isabs(path):
532539
return path
533540

0 commit comments

Comments
 (0)