<s> """<STR_LIT>""" <EOL> import threading <EOL> from grr . lib import server_plugins <EOL> from grr . gui import admin_ui <EOL> from grr . client import client <EOL> from grr . gui import runtests <EOL> from grr . lib import config_lib <EOL> from grr . lib import flags <EOL> from grr . lib import startup <EOL> from grr . tools import http_server <EOL> from grr . worker import worker <EOL> def main ( argv ) : <EOL> """<STR_LIT>""" <EOL> config_lib . CONFIG . AddContext ( <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" ) <EOL> config_lib . CONFIG . AddContext ( <EOL> "<STR_LIT>" , "<STR_LIT>" ) <EOL> flags . FLAGS . config = config_lib . Resource ( ) . Filter ( <EOL> "<STR_LIT>" ) <EOL> flags . FLAGS . secondary_configs = [ config_lib . Resource ( ) . Filter ( <EOL> "<STR_LIT>" ) ] <EOL> startup . Init ( ) <EOL> from grr . gui import gui_plugins <EOL> worker_thread = threading . Thread ( target = worker . main , args = [ argv ] , <EOL> name = "<STR_LIT>" ) <EOL> worker_thread . daemon = True <EOL> worker_thread . start ( ) <EOL> http_thread = threading . Thread ( target = http_server . main , args = [ argv ] , <EOL> name = "<STR_LIT>" ) <EOL> http_thread . daemon = True <EOL> http_thread . start ( ) <EOL> client_thread = threading . Thread ( target = client . main , args = [ argv ] , <EOL> name = "<STR_LIT>" ) <EOL> client_thread . daemon = True <EOL> client_thread . start ( ) <EOL> runtests . main ( argv ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> flags . StartMain ( main ) </s>
