Skip to content
Snippets Groups Projects
Select Git revision
  • afe79add05439e995acd12588a4d5fedb4d1ccce
  • main default protected
  • renovate/lock-file-maintenance
  • demo protected
  • person-select-custom
  • dbp-translation-component
  • icon-set-mapping
  • port-i18next-parser
  • remove-sentry
  • favorites-and-recent-files
  • revert-6c632dc6
  • lit2
  • advertisement
  • wc-part
  • automagic
  • publish
  • wip-cleanup
  • demo-file-handling
18 results

rollup.config.js

Blame
    • Reiter, Christoph's avatar
      68a87639
      Use the rollup resolve plugin for finding package asssets · 68a87639
      Reiter, Christoph authored
      Instead of hardcoding the paths of the node_modules directory we use the node-resolve
      plugin of rollup to find the root of the corresponding JS package and calcucate a path from
      there.
      
      Resolving a package requires calling an async function, so we have to use await in the rollup config.
      Luckily rollup supports configs wrapped in a promise, so we just have to wrap it in a function which returns
      a promise.
      68a87639
      History
      Use the rollup resolve plugin for finding package asssets
      Reiter, Christoph authored
      Instead of hardcoding the paths of the node_modules directory we use the node-resolve
      plugin of rollup to find the root of the corresponding JS package and calcucate a path from
      there.
      
      Resolving a package requires calling an async function, so we have to use await in the rollup config.
      Luckily rollup supports configs wrapped in a promise, so we just have to wrap it in a function which returns
      a promise.
    __init__.py 2.28 KiB
    import os
    
    import os
    import sys
    
    sys.path.append(os.path.join(os.path.dirname(__file__), '../'))
    
    from .model.ProberModel import ProberModel as Model
    from .model.ProberModel import ProberSignals as Signals
    from .view.ProberControlWindow import ProberControlWindow as ControlWindow
    from .controller.ProberController import ProberController as Controller
    from .controller.OpticalProbesPosition import OpticalProbesPosition as ProbePosition
    
    if os.getenv("VELOX_SIM") == "TRUE":
        try:
            from .velox_api.simulator.VeloxSimulator import MessageServerInterface
            from .velox_api.simulator.VeloxSimulator import (MessageServerInterface, SetChuckHome, SetMapHome,
                                                                   ReadChuckPosition, ReadChuckHeights, MoveChuck,
                                                                   SnapImage, GetDieDataAsColRow, StepToDie,
                                                                  ReportKernelVersion)
        except Exception as e:
            from .velox_api.simulator.VeloxSimulator import MessageServerInterface
            from .velox_api.simulator.VeloxSimulator import (MessageServerInterface, SetChuckHome, SetMapHome,
                                                             ReadChuckPosition, ReadChuckHeights, MoveChuck,
                                                             SnapImage, GetDieDataAsColRow, StepToDie,
                                                             ReportKernelVersion)
    else:
        try:
            from .velox_api.velox.vxmessageserver import MessageServerInterface
            from .velox_api.velox import (MessageServerInterface, SetChuckHome, SetMapHome,
                                                ReadChuckPosition, ReadChuckHeights, MoveChuck,
                                                SnapImage, GetDieDataAsColRow, StepToDie, ReportKernelVersion)
        except Exception as e:
            from .velox_api.simulator.VeloxSimulator import MessageServerInterface
            from .velox_api.simulator.VeloxSimulator import (MessageServerInterface, SetChuckHome, SetMapHome,
                                                             ReadChuckPosition, ReadChuckHeights, MoveChuck,
                                                             SnapImage, GetDieDataAsColRow, StepToDie,
                                                             ReportKernelVersion)