mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Address feedback from PR.
This commit is contained in:
parent
a267284c25
commit
cc23f407af
2 changed files with 6 additions and 11 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue