console interpreter inherits from AYONaddon

This commit is contained in:
Jakub Trllo 2024-02-09 18:32:27 +01:00
parent 3365919d96
commit 4e3fd86987
2 changed files with 5 additions and 6 deletions

View file

@ -1,4 +1,4 @@
from .module import (
from .addon import (
PythonInterpreterAction
)

View file

@ -1,13 +1,12 @@
from ayon_core.modules import OpenPypeModule, ITrayAction
from ayon_core.addon import AYONAddon, ITrayAction
class PythonInterpreterAction(OpenPypeModule, ITrayAction):
class PythonInterpreterAction(AYONAddon, ITrayAction):
label = "Console"
name = "python_interpreter"
admin_action = True
def initialize(self, modules_settings):
self.enabled = True
def initialize(self, settings):
self._interpreter_window = None
def tray_init(self):
@ -22,7 +21,7 @@ class PythonInterpreterAction(OpenPypeModule, ITrayAction):
if self._interpreter_window:
return
from openpype_modules.python_console_interpreter.window import (
from ayon_core.modules.python_console_interpreter.window import (
PythonInterpreterWidget
)