formatting cleanup

This commit is contained in:
Jakub Trllo 2025-06-03 12:10:26 +02:00
parent c5cd53b0aa
commit 406f43a13f
4 changed files with 5 additions and 10 deletions

View file

@ -347,8 +347,8 @@ class HostBase(ABC):
"AYON_WORKDIR": workdir,
}
# Update the Session and environments. Pop from environments all keys with
# value set to None.
# Update the Session and environments. Pop from environments all
# keys with value set to None.
for key, value in envs.items():
if value is None:
os.environ.pop(key, None)

View file

@ -368,8 +368,6 @@ class IWorkfileHost:
"""
context = self.get_current_context()
project_name = context["project_name"]
current_folder_path = context["folder_path"]
current_task_name = context["task_name"]
workdir = os.path.dirname(filepath)
# Set 'AYON_WORKDIR' environment variable
@ -1033,7 +1031,6 @@ class IWorkfileHost:
"""
pass
def _before_workfile_save(
self,
filepath: str,

View file

@ -8,7 +8,7 @@ from typing import Optional, Any
import ayon_api
from ayon_api.operations import OperationsSession
from ayon_core.lib import filter_profiles, emit_event, get_ayon_username
from ayon_core.lib import filter_profiles, get_ayon_username
from ayon_core.settings import get_project_settings
from .path_resolving import get_workfile_template_key
@ -54,7 +54,7 @@ def get_workfiles_info(
task_ids=[task_id],
))
if platform.system().lower() == "windows":
if platform.system().lower() == "windows":
workfile_path = workfile_path.replace("\\", "/")
workfile_path = workfile_path.lower()
@ -398,7 +398,7 @@ def copy_and_open_workfile(
"""
from ayon_core.pipeline.context_tools import registered_host
host = registered_host()
host.copy_workfile(
src_workfile_path,

View file

@ -1,13 +1,11 @@
from __future__ import annotations
import os
import copy
import uuid
import platform
import typing
from typing import Optional, Any
import ayon_api
from ayon_api.operations import OperationsSession
from ayon_core.lib import (
get_ayon_username,