Skip to content

Commit

Permalink
Merge pull request #5 from plone/issue-3-handle-relative-path-to-repo
Browse files Browse the repository at this point in the history
Support relative path in COOKIEPLONE_REPOSITORY
  • Loading branch information
davisagli authored Apr 21, 2024
2 parents 47cff82 + ea5653e commit de1aaa5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cookieplone/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def cli(
repo_path = get_base_repository(repository)
if not template:
# Display template options
template = prompt_for_template(Path(repo_path))
template = prompt_for_template(repo_path)
else:
console.welcome_screen()

Expand Down
3 changes: 2 additions & 1 deletion cookieplone/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_base_repository(
password: str = "",
config_file: data.OptionalPath = None,
default_config: bool = False,
):
) -> Path:
config_dict = get_user_config(
config_file=config_file,
default_config=default_config,
Expand All @@ -27,6 +27,7 @@ def get_base_repository(
password=password,
directory="",
)
base_repo_dir = Path(base_repo_dir).resolve()
return base_repo_dir


Expand Down

0 comments on commit de1aaa5

Please sign in to comment.