__init__.py 845 B

1234567891011121314151617181920212223
  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. def getMetaData():
  6. return {}
  7. def register(app):
  8. if Platform.isWindows():
  9. from . import WindowsRemovableDrivePlugin
  10. return { "output_device": WindowsRemovableDrivePlugin.WindowsRemovableDrivePlugin() }
  11. elif Platform.isOSX():
  12. from . import OSXRemovableDrivePlugin
  13. return { "output_device": OSXRemovableDrivePlugin.OSXRemovableDrivePlugin() }
  14. elif Platform.isLinux():
  15. from . import LinuxRemovableDrivePlugin
  16. return { "output_device": LinuxRemovableDrivePlugin.LinuxRemovableDrivePlugin() }
  17. else:
  18. Logger.log("e", "Unsupported system, thus no removable device hotplugging support available.")
  19. return { }