mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
rename the function and the elaborate the docstring
This commit is contained in:
parent
b749cbf407
commit
41e81ef7a8
2 changed files with 6 additions and 4 deletions
|
|
@ -3399,8 +3399,10 @@ def create_viewer_profile_string(viewer, display=None, path_like=False):
|
|||
return "{} ({})".format(viewer, display)
|
||||
|
||||
|
||||
def get_file_with_name_and_hashes(original_path, name):
|
||||
"""Function to get the ranmed filename with frame hashes
|
||||
def get_head_filename_without_hashes(original_path, name):
|
||||
"""Function to get the ranmed head filename without frame hashes
|
||||
To avoid the system being confused on finding the filename with
|
||||
frame hashes if the head of the filename has the hashed symbol
|
||||
|
||||
Args:
|
||||
original_path (str): the filename with frame hashes
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ from .lib import (
|
|||
get_view_process_node,
|
||||
get_viewer_config_from_string,
|
||||
deprecated,
|
||||
get_file_with_name_and_hashes
|
||||
get_head_filename_without_hashes
|
||||
)
|
||||
from .pipeline import (
|
||||
list_instances,
|
||||
|
|
@ -813,7 +813,7 @@ class ExporterReviewMov(ExporterReview):
|
|||
|
||||
self.file = self.fhead + self.name + ".{}".format(self.ext)
|
||||
if ".{}".format(self.ext) not in VIDEO_EXTENSIONS:
|
||||
filename = get_file_with_name_and_hashes(
|
||||
filename = get_head_filename_without_hashes(
|
||||
self.path_in, self.name)
|
||||
self.file = filename
|
||||
if ".{}".format(self.ext) not in self.file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue