Address feedback from PR.

This commit is contained in:
robin@ynput.io 2024-12-04 11:23:29 -05:00
parent a267284c25
commit cc23f407af
2 changed files with 6 additions and 11 deletions

View file

@ -173,13 +173,10 @@ def get_staging_dir_info(
)
# add additional data
ctx_data.update({
"product": {
"type": product_type,
"name": product_name
},
"root": anatomy.roots
})
ctx_data["product"] = {
"type": product_type,
"name": product_name
}
# add additional template formatting data
if template_data:

View file

@ -65,11 +65,9 @@ def _create_local_staging_dir(prefix, suffix, dirpath=None):
str: path to tempdir
"""
# use pathlib for creating tempdir
staging_dir = Path(tempfile.mkdtemp(
return tempfile.mkdtemp(
prefix=prefix, suffix=suffix, dir=dirpath
))
return staging_dir.as_posix()
)
def _create_custom_tempdir(project_name, anatomy):