renamed module.py to addon.py in unreal

This commit is contained in:
Jakub Trllo 2022-08-26 15:11:14 +02:00
parent 2bfa9eea44
commit 0212f6fc06
3 changed files with 6 additions and 6 deletions

View file

@ -1,6 +1,6 @@
from .module import UnrealModule from .addon import UnrealAddon
__all__ = ( __all__ = (
"UnrealModule", "UnrealAddon",
) )

View file

@ -5,14 +5,14 @@ from openpype.modules.interfaces import IHostAddon
UNREAL_ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) UNREAL_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
class UnrealModule(OpenPypeModule, IHostAddon): class UnrealAddon(OpenPypeModule, IHostAddon):
name = "unreal" name = "unreal"
host_name = "unreal" host_name = "unreal"
def initialize(self, module_settings): def initialize(self, module_settings):
self.enabled = True self.enabled = True
def add_implementation_envs(self, env, app) -> None: def add_implementation_envs(self, env, app):
"""Modify environments to contain all required for implementation.""" """Modify environments to contain all required for implementation."""
# Set OPENPYPE_UNREAL_PLUGIN required for Unreal implementation # Set OPENPYPE_UNREAL_PLUGIN required for Unreal implementation

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
"""Unreal launching and project tools.""" """Unreal launching and project tools."""
import sys
import os import os
import platform import platform
import json import json
@ -9,7 +9,7 @@ import subprocess
import re import re
from pathlib import Path from pathlib import Path
from collections import OrderedDict from collections import OrderedDict
from openpype.api import get_project_settings from openpype.settings import get_project_settings
def get_engine_versions(env=None): def get_engine_versions(env=None):