mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -06:00
14 lines
416 B
Python
14 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)}
|