Cura/plugins/CuraDrive/__init__.py
2018-12-10 14:18:10 +01:00

15 lines
416 B
Python

# Copyright (c) 2017 Ultimaker B.V.
import os
is_testing = os.getenv('ENV_NAME', "development") == "testing"
# Only load the whole plugin when not running tests as __init__.py is automatically loaded by PyTest
if not is_testing:
from .src.DrivePluginExtension import DrivePluginExtension
def getMetaData():
return {}
def register(app):
return {"extension": DrivePluginExtension(app)}