Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Gerveshi <15710060+agerveshi@users.noreply.github.com>
  • Loading branch information
agerveshi committed Sep 19, 2023
1 parent ce6d393 commit 513d402
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/deadline/nuke_submitter/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from collections.abc import Generator
from os.path import commonpath, dirname, join, normpath, samefile
from sys import platform
from typing import List

import nuke
import PyOpenColorIO as OCIO
Expand Down Expand Up @@ -47,7 +46,7 @@ def get_custom_ocio_config_path() -> str:
return nuke.root().knob("customOCIOConfigPath").getEvaluatedValue()


def get_custom_ocio_config_search_paths(ocio_config_file: str) -> List[str]:
def get_custom_ocio_config_search_paths(ocio_config_file: str) -> list[str]:
"""Returns the directories containing the LUTs for the provided OCIO config"""
ocio_config = OCIO.Config.CreateFromFile(ocio_config_file)

Expand Down
5 changes: 1 addition & 4 deletions src/deadline/nuke_submitter/job_bundle_output_test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,7 @@ def _run_job_bundle_output_test(test_dir: str, dcc_scene_file: str, report_fh, m
# Close the DCC scene file
_close_dcc_scene_file()

# Process every file in the job bundle to replace the temp dir with a standardized path.
# Also replace the nuke version in the test job bundle with the nuke version in the
# expected job bundle (if there is one). This allows job bundle tests to be run from
# different nuke versions than they were created with.
# Process every file in the job bundle to replace the temp dir with a standardized path
for filename in os.listdir(temp_job_bundle_dir):
full_filename = os.path.join(temp_job_bundle_dir, filename)
with open(full_filename, encoding="utf8") as f:
Expand Down
6 changes: 3 additions & 3 deletions test/deadline_submitter_for_nuke/unit/mock_stubs.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

from typing import List
from __future__ import annotations


class MockOCIOConfig:
"""Mock class which emulates an OCIO Config"""

__name__ = "Config"

def __init__(self, search_paths: List[str]):
def __init__(self, search_paths: list[str]):
self._search_paths = search_paths

def getSearchPaths(self) -> List[str]:
def getSearchPaths(self) -> list[str]:
return self._search_paths

0 comments on commit 513d402

Please sign in to comment.