mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 07:15:03 -06:00
Remove the non-load-only-when-testing check
Contributes to CURA-6005.
This commit is contained in:
parent
8e78582b61
commit
8206fde223
1 changed files with 5 additions and 11 deletions
|
@ -1,16 +1,10 @@
|
|||
# Copyright (c) 2018 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import os
|
||||
from .src.DrivePluginExtension import DrivePluginExtension
|
||||
|
||||
is_testing = os.getenv('ENV_NAME', "development") == "testing"
|
||||
def getMetaData():
|
||||
return {}
|
||||
|
||||
# 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)}
|
||||
def register(app):
|
||||
return {"extension": DrivePluginExtension(app)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue