INNER CODE UNIT · Python

get_full_path

stratumauth/app · extra/build.py:33

def get_full_path(input: str) -> str:
    return os.path.abspath(os.path.expanduser(input))


@contextlib.contextmanager
def get_build_dir_path(output_path: str) -> Generator[str, None, None]:
    build_path = f"{output_path}.build"

    try:
        os.makedirs(build_path, exist_ok=True)
        yield build_path
    finally:
        shutil.rmtree(build_path)


def adjust_csproj(build_dir: str, args: argparse.Namespace):
    project_name = PROJECT_NAMES[args.project]
    csproj_path = os.path.join(build_dir, project_name, f"{project_name}.csproj")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…