INNER CODE UNIT · Python
get_build_dir_path
stratumauth/app · extra/build.py:38
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")
csproj = ElementTree.parse(csproj_path)
property_group = csproj.find("PropertyGroup")
package_format = ElementTree.Element("AndroidPackageFormat")