1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

get_apps_repo: default required = false

This commit is contained in:
Salamandar 2024-08-13 11:15:28 +02:00
parent 38922236b8
commit 8444622255

View file

@ -26,7 +26,7 @@ class TemporaryPath(Path):
APPS_REPO_DIR: TemporaryPath | None = None
def add_args(parser: argparse.ArgumentParser, required: bool = True, allow_temp: bool = True) -> None:
def add_args(parser: argparse.ArgumentParser, required: bool = False, allow_temp: bool = True) -> None:
env_apps_dir_str = os.environ.get("YNH_APPS_DIR")
env_apps_dir = Path(env_apps_dir_str) if env_apps_dir_str is not None else None