From eb6dd693b77edd2cda4ecbc3151f95b8a953cf9c Mon Sep 17 00:00:00 2001 From: Sebastien Albert Date: Wed, 10 Jul 2024 10:33:16 +0200 Subject: [PATCH] feat: Move import OpenPype to Ayon --- client/ayon_perforce/addon.py | 4 ++-- client/ayon_perforce/hooks/pre_p4_sync.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/ayon_perforce/addon.py b/client/ayon_perforce/addon.py index 8169fad..4c5689f 100644 --- a/client/ayon_perforce/addon.py +++ b/client/ayon_perforce/addon.py @@ -1,14 +1,14 @@ import os -from openpype.modules import OpenPypeModule, ILaunchHookPaths +from ayon_core.addon import AYONAddon from .version import __version__ PERFORCE_MODULE_DIR = os.path.dirname(os.path.abspath(__file__)) -class PerforceAddon(OpenPypeModule, ILaunchHookPaths): +class PerforceAddon(AYONAddon): """Perfrorce Addon """ name = "perforce" diff --git a/client/ayon_perforce/hooks/pre_p4_sync.py b/client/ayon_perforce/hooks/pre_p4_sync.py index 7798fc0..19de874 100644 --- a/client/ayon_perforce/hooks/pre_p4_sync.py +++ b/client/ayon_perforce/hooks/pre_p4_sync.py @@ -2,7 +2,7 @@ import re import subprocess -from openpype.lib.applications import ( +from ayon_applications import ( PreLaunchHook, LaunchTypes, ApplicationLaunchFailed )