We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f84326a commit 7652321Copy full SHA for 7652321
experimental/python/databricks/bundles/build.py
@@ -528,6 +528,13 @@ def _relativize_location(location: Location) -> Location:
528
529
530
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
538
if not os.path.isabs(path):
539
return path
540
0 commit comments