Skip to content
Snippets Groups Projects
Select Git revision
  • 9fdb0a40c773776ca653d6ce53412138ab0fec91
  • 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.utils.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.
    ChildProcessControl2.py 1016 B
    from PySide6.QtCore import Signal
    
    import cmp
    from ChildProcess2 import ChildProcess2
    
    
    class ChildProcessControl2(cmp.CProcessControl):
        call_without_mp_finished = Signal(int)
        #call_without_mp2_changed = Signal(int, int, int)
    
        def __init__(self, parent, signal_class, enable_internal_logging):
            super().__init__(parent, signal_class, enable_internal_logging=enable_internal_logging)
            self.register_child_process(ChildProcess2(
                self.state_queue,
                self.cmd_queue,
                enable_internal_logging=enable_internal_logging))
    
        @cmp.CProcessControl.register_function()
        def call_without_mp(self, a, b, c=None):
            pass
            #print(f"{os.getpid()} -> call_without_mp with {a}, {b}, {c}!")
    
        @cmp.CProcessControl.register_function()
        def call_without_mp2(self, a, b, c=None, **kwargs):
          pass
    
        @cmp.CProcessControl.register_function()
        def call_all(self):
           pass
           #print(f"{os.getpid()} -> Executing call_all in Control Class.")