mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-21 20:19:32 +08:00
15 lines
416 B
Python
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)}
|