mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
AY-5750 - removed folderPath from expected_files
Folder path messed up os.path.join, resulting in wrong file path pointing to c:/file_name.png. Folder path is actually not needed here, it is already included in base_dir.
This commit is contained in:
parent
f7e9e413fb
commit
50f39e4f5e
1 changed files with 10 additions and 9 deletions
|
|
@ -181,24 +181,25 @@ class CollectAERender(publish.AbstractCollectRender):
|
|||
_, ext = os.path.splitext(os.path.basename(file_name))
|
||||
ext = ext.replace('.', '')
|
||||
version_str = "v{:03d}".format(render_instance.version)
|
||||
if "#" not in file_name: # single frame (mov)W
|
||||
path = os.path.join(base_dir, "{}_{}_{}.{}".format(
|
||||
render_instance.folderPath,
|
||||
if "#" not in file_name: # single frame (mov)
|
||||
file_name = "{}_{}.{}".format(
|
||||
render_instance.productName,
|
||||
version_str,
|
||||
ext
|
||||
))
|
||||
expected_files.append(path)
|
||||
)
|
||||
file_path = os.path.join(base_dir, file_name)
|
||||
expected_files.append(file_path)
|
||||
else:
|
||||
for frame in range(start, end + 1):
|
||||
path = os.path.join(base_dir, "{}_{}_{}.{}.{}".format(
|
||||
render_instance.folderPath,
|
||||
file_name = "{}_{}.{}.{}".format(
|
||||
render_instance.productName,
|
||||
version_str,
|
||||
str(frame).zfill(self.padding_width),
|
||||
ext
|
||||
))
|
||||
expected_files.append(path)
|
||||
)
|
||||
|
||||
file_path = os.path.join(base_dir, file_name)
|
||||
expected_files.append(file_path)
|
||||
return expected_files
|
||||
|
||||
def _get_output_dir(self, render_instance):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue