better_pathlib#

aws_ops_alpha.vendor.better_pathlib.temp_cwd(path: Union[str, Path])[source]#

Temporarily set the current working directory (CWD) and automatically switch back when it’s done.

Example:

with temp_cwd(Path("/path/to/target/working/directory")):
    # do something
aws_ops_alpha.vendor.better_pathlib.get_dir_here(file_var: str) Path[source]#

Get the directory of the current file.

Example:

get_dir_here(__file__)