__init__.py 911 B

12345678910111213141516171819202122232425
  1. # Copyright (c) 2015 Ultimaker B.V.
  2. # Cura is released under the terms of the LGPLv3 or higher.
  3. from UM.Platform import Platform
  4. from UM.Logger import Logger
  5. from UM.i18n import i18nCatalog
  6. catalog = i18nCatalog("cura")
  7. def getMetaData():
  8. return {
  9. }
  10. def register(app):
  11. if Platform.isWindows():
  12. from . import WindowsRemovableDrivePlugin
  13. return { "output_device": WindowsRemovableDrivePlugin.WindowsRemovableDrivePlugin() }
  14. elif Platform.isOSX():
  15. from . import OSXRemovableDrivePlugin
  16. return { "output_device": OSXRemovableDrivePlugin.OSXRemovableDrivePlugin() }
  17. elif Platform.isLinux():
  18. from . import LinuxRemovableDrivePlugin
  19. return { "output_device": LinuxRemovableDrivePlugin.LinuxRemovableDrivePlugin() }
  20. else:
  21. Logger.log("e", "Unsupported system, thus no removable device hotplugging support available.")
  22. return { }