mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
use stagingDir on instance output
This commit is contained in:
parent
7c4f408e77
commit
0525075a69
1 changed files with 7 additions and 2 deletions
|
|
@ -101,8 +101,13 @@ class ExtractSequence(pyblish.api.Extractor):
|
|||
)
|
||||
)
|
||||
|
||||
# Save to temp
|
||||
output_dir = tempfile.mkdtemp().replace("\\", "/")
|
||||
# Save to staging dir
|
||||
output_dir = instance.data.get("stagingDir")
|
||||
if not output_dir:
|
||||
# Create temp folder if staging dir is not set
|
||||
output_dir = tempfile.mkdtemp().replace("\\", "/")
|
||||
instance.data["stagingDir"] = output_dir
|
||||
|
||||
self.log.debug(
|
||||
"Files will be rendered to folder: {}".format(output_dir)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue