Пример #1
0
def main():
    """
    Startup function.
    """
    if len(sys.argv) == 1:
        cli_error("No arguments passed!")

    install_reactor(force_reactor_name="qt4")

    from host import settings as host_settings
    from . import cli

    # See host.cli for actually executed CLI commands.
    cli_mode(host_settings.HOST_VERSION_STRING)
Пример #2
0
def main():
    """
    Startup function.
    """
    if len(sys.argv) == 1:
        cli_error('No arguments passed!')

    install_reactor(force_reactor_name='qt4')

    from host import settings as host_settings
    from . import cli

    # See host.cli for actually executed CLI commands.
    cli_mode(host_settings.HOST_VERSION_STRING)
Пример #3
0
def main():
    """CLI startup function."""
    if len(sys.argv) == 1:
        print('No arguments passed, assuming --launch')
        sys.argv.append('--launch')

    # Setup reactor, depending upon the operating system:
    # do this before the reactor is imported!
    install_reactor(threadpool_size=25)

    from . import cli  # so that the command lines are initialized
    from node import settings
    #settings.configure_logging(postfix='early')

    # See node.cli for actually executed CLI commands.
    cli_mode(settings.NODE_VERSION_STRING)