Refactor Worker / Engine / Factory file layout

This commit is contained in:
Brett Williams
2023-05-27 14:40:34 -05:00
parent 12f720d943
commit df92269708
15 changed files with 251 additions and 224 deletions

View File

@@ -0,0 +1,26 @@
try:
from .base_engine import *
except ImportError:
from base_engine import *
class AERender(BaseRenderEngine):
supported_extensions = ['.aep']
@classmethod
def version(cls):
version = None
try:
render_path = cls.renderer_path()
if render_path:
ver_out = subprocess.check_output([render_path, '-version'])
version = ver_out.decode('utf-8').split(" ")[-1].strip()
except Exception as e:
logger.error(f'Failed to get {cls.name()} version: {e}')
return version
@classmethod
def get_output_formats(cls):
# todo: create implementation
return []