mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
console interpreter inherits from AYONaddon
This commit is contained in:
parent
3365919d96
commit
4e3fd86987
2 changed files with 5 additions and 6 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from .module import (
|
||||
from .addon import (
|
||||
PythonInterpreterAction
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue