Skip to content

dbx_patch.patches.wsfs_path_finder_patch

source module dbx_patch.patches.wsfs_path_finder_patch

WsfsPathFinder Patch for Editable Installs.

This module verifies workspace path finder compatibility with editable installs. Supports both legacy and modern Databricks runtimes:

  • DBR < 18.0: Verifies dbruntime.WsfsPathFinder.WsfsPathFinder
  • DBR >= 18.0: Verifies dbruntime.workspace_import_machinery._WorkspacePathFinder

These path finders are in sys.meta_path and prevent imports of notebook files. We verify they don't interfere with editable package imports.

Classes

source class WsfsPathFinderVerification(verbose: bool = True)

Bases : BaseVerification

Verification for workspace path finder compatibility.

Verifies that workspace path finders don't interfere with editable imports.

Initialize the verification.

Parameters

  • verbose : bool Enable verbose logging

Methods

  • verify Verify workspace path finder doesn't block editable imports.

  • is_verified Check if the WsfsPathFinder has been verified.

source method WsfsPathFinderVerification.verify()PatchResult

Verify workspace path finder doesn't block editable imports.

Returns

source method WsfsPathFinderVerification.is_verified()bool

Check if the WsfsPathFinder has been verified.

Returns

  • bool True if verified, False otherwise