# Path: fluxghost/http_websocket_route.py
# ROUTES = [
#     (re.compile("discover"),
#      "fluxghost.websocket.discover.WebsocketDiscover"),
# 
#     (re.compile("upnp-config"),
#      "fluxghost.websocket.upnp_ws.WebsocketUpnp"),
#     (re.compile("touch"),
#      "fluxghost.websocket.touch.WebsocketTouch"),
# 
#     (re.compile("device-manager/(?P<uuid>[0-9a-fA-F]{32})"),
#      "fluxghost.websocket.device_manager.WebsocketDeviceManager"),
#     (re.compile("device-manager/usb/(?P<usb_addr>[0-9]{1,3})"),
#      "fluxghost.websocket.device_manager.WebsocketDeviceManager"),
#     (re.compile("device-manager/uart/(?P<uart>[\w\W]+)"),
#      "fluxghost.websocket.device_manager.WebsocketDeviceManager"),
# 
#     (re.compile("control/(?P<uuid>[0-9a-fA-F]{32})"),
#      "fluxghost.websocket.control.WebsocketControl"),
#     (re.compile("control/usb/(?P<usb_addr>[0-9]{1,3})"),
#      "fluxghost.websocket.control.WebsocketControl"),
# 
#     (re.compile("camera/(?P<uuid>[0-9a-fA-F]{32})"),
#      "fluxghost.websocket.camera.WebsocketCamera"),
#     (re.compile("camera/usb/(?P<usb_addr>[0-9]{1,3})"),
#      "fluxghost.websocket.camera.WebsocketCamera"),
# 
#     (re.compile("3d-scan-control/" + '0' * 32),
#      "fluxghost.websocket.scan_control.Websocket3DScanControlSimulation"),
#     (re.compile("3d-scan-control/(?P<uuid>[0-9a-fA-F]{32})"),
#      "fluxghost.websocket.scan_control.Websocket3DScanControl"),
#     (re.compile("3d-scan-control/usb/(?P<usb_addr>[0-9]{1,3})"),
#      "fluxghost.websocket.scan_control.Websocket3DScanControl"),
# 
#     (re.compile("usb/interfaces"),
#      "fluxghost.websocket.usb_interfaces.WebsocketUsbInterfaces"),
#     (re.compile("usb-config"),
#      "fluxghost.websocket.usb_config.WebsocketUsbConfig"),
# 
#     (re.compile("ver"),
#      "fluxghost.websocket.ver.WebsocketVer"),
#     (re.compile("3d-scan-modeling"),
#      "fluxghost.websocket.scan_modeling.Websocket3DScannModeling"),
#     (re.compile("bitmap-laser-parser"),
#      "fluxghost.websocket.toolpath.WebsocketLaserBitmap"),
#     (re.compile("svg-laser-parser"),
#      "fluxghost.websocket.toolpath.WebsocketLaserSvg"),
#     (re.compile("svgeditor-laser-parser"),
#      "fluxghost.websocket.toolpath.WebsocketLaserSvgeditor"),
#     (re.compile("pen-svg-parser"),
#      "fluxghost.websocket.toolpath.WebsocketDrawingSvg"),
#     (re.compile("svg-vinyl-parser"),
#      "fluxghost.websocket.toolpath.WebsocketVinylSvg"),
#     (re.compile("fcode-reader"),
#      "fluxghost.websocket.fcode_reader.WebsocketFcodeReader"),
#     (re.compile("3dprint-slicing"),
#      "fluxghost.websocket.stl_slicing_parser.Websocket3DSlicing"),
#     (re.compile("camera-calibration"),
#      "fluxghost.websocket.camera_calibration.WebsocketCameraCalibration"),
#     (re.compile("image-tracer"),
#      "fluxghost.websocket.image_tracer.WebsocketImageTracer"),
#     (re.compile("push-studio"),
#      "fluxghost.websocket.push_studio.WebsocketPushStudio"),
#     (re.compile("inter-process"),
#      "fluxghost.websocket.inter_process.WebsocketInterProcess")
# ]


from importlib import import_module
from fluxghost.http_websocket_route import ROUTES
import sys
        import pkg_resources





def try_import(module_name, without_pcl):
    try:
        sys.stdout.write("Import %s ... " % module_name)
        sys.stdout.flush()

        import_module(module_name)

        sys.stdout.write("OK\n")

# Path: fluxghost/http_websocket_route.py
# ROUTES = [
#     (re.compile("discover"),
#      "fluxghost.websocket.discover.WebsocketDiscover"),
# 
#     (re.compile("upnp-config"),
#      "fluxghost.websocket.upnp_ws.WebsocketUpnp"),
#     (re.compile("touch"),
#      "fluxghost.websocket.touch.WebsocketTouch"),
# 
#     (re.compile("device-manager/(?P<uuid>[0-9a-fA-F]{32})"),
#      "fluxghost.websocket.device_manager.WebsocketDeviceManager"),
#     (re.compile("device-manager/usb/(?P<usb_addr>[0-9]{1,3})"),
#      "fluxghost.websocket.device_manager.WebsocketDeviceManager"),
#     (re.compile("device-manager/uart/(?P<uart>[\w\W]+)"),
#      "fluxghost.websocket.device_manager.WebsocketDeviceManager"),
# 
#     (re.compile("control/(?P<uuid>[0-9a-fA-F]{32})"),
#      "fluxghost.websocket.control.WebsocketControl"),
#     (re.compile("control/usb/(?P<usb_addr>[0-9]{1,3})"),
#      "fluxghost.websocket.control.WebsocketControl"),
# 
#     (re.compile("camera/(?P<uuid>[0-9a-fA-F]{32})"),
#      "fluxghost.websocket.camera.WebsocketCamera"),
#     (re.compile("camera/usb/(?P<usb_addr>[0-9]{1,3})"),
#      "fluxghost.websocket.camera.WebsocketCamera"),
# 
#     (re.compile("3d-scan-control/" + '0' * 32),
#      "fluxghost.websocket.scan_control.Websocket3DScanControlSimulation"),
#     (re.compile("3d-scan-control/(?P<uuid>[0-9a-fA-F]{32})"),
#      "fluxghost.websocket.scan_control.Websocket3DScanControl"),
#     (re.compile("3d-scan-control/usb/(?P<usb_addr>[0-9]{1,3})"),
#      "fluxghost.websocket.scan_control.Websocket3DScanControl"),
# 
#     (re.compile("usb/interfaces"),
#      "fluxghost.websocket.usb_interfaces.WebsocketUsbInterfaces"),
#     (re.compile("usb-config"),
#      "fluxghost.websocket.usb_config.WebsocketUsbConfig"),
# 
#     (re.compile("ver"),
#      "fluxghost.websocket.ver.WebsocketVer"),
#     (re.compile("3d-scan-modeling"),
#      "fluxghost.websocket.scan_modeling.Websocket3DScannModeling"),
#     (re.compile("bitmap-laser-parser"),
#      "fluxghost.websocket.toolpath.WebsocketLaserBitmap"),
#     (re.compile("svg-laser-parser"),
#      "fluxghost.websocket.toolpath.WebsocketLaserSvg"),
#     (re.compile("svgeditor-laser-parser"),
#      "fluxghost.websocket.toolpath.WebsocketLaserSvgeditor"),
#     (re.compile("pen-svg-parser"),
#      "fluxghost.websocket.toolpath.WebsocketDrawingSvg"),
#     (re.compile("svg-vinyl-parser"),
#      "fluxghost.websocket.toolpath.WebsocketVinylSvg"),
#     (re.compile("fcode-reader"),
#      "fluxghost.websocket.fcode_reader.WebsocketFcodeReader"),
#     (re.compile("3dprint-slicing"),
#      "fluxghost.websocket.stl_slicing_parser.Websocket3DSlicing"),
#     (re.compile("camera-calibration"),
#      "fluxghost.websocket.camera_calibration.WebsocketCameraCalibration"),
#     (re.compile("image-tracer"),
#      "fluxghost.websocket.image_tracer.WebsocketImageTracer"),
#     (re.compile("push-studio"),
#      "fluxghost.websocket.push_studio.WebsocketPushStudio"),
#     (re.compile("inter-process"),
#      "fluxghost.websocket.inter_process.WebsocketInterProcess")
# ]


# Path: tests/main.py
from importlib import import_module
from fluxghost.http_websocket_route import ROUTES
import sys
        import pkg_resources






def try_import(module_name, without_pcl):
    try:
        sys.stdout.write("Import %s ... " % module_name)
        sys.stdout.flush()

        import_module(module_name)

        sys.stdout.write("OK\n")

        sys.stdout.flush()