dlt._workspace.run_context
default_working_dir
def default_working_dir(run_dir: str, name: str, profile: str,
default_folder: str) -> str
Computes default data dir which is relative to run_dir and separated by profile_name
If project_dir is not writable, we fall back to temp dir.
switch_profile
def switch_profile(profile: str) -> ProfilesRunContext
Switch the active profile and reload the workspace run context.
This is a convenience wrapper around switch_context that uses the
run_dir of the current active() context.
Arguments:
profile- Name of the profile to activate.
Returns:
SupportsProfilesRunContext- The refreshed run context bound to the given profile.