(server_root)
Launches the ArdublocklyServer.
Launches the ArdublocklyServer.
Launches the ArdublocklyServer .
def launch_server(server_root):
    """ Launches the ArdublocklyServer. """
    import threading
    if server_root is not None:
        root_location = os.path.realpath(server_root)
    else:
        root_location = os.path.dirname(os.path.realpath(sys.argv[0]))
    thread = threading.Thread(
        target=start_server, kwargs={"document_root": root_location})
    thread.daemon = True
    print("\n======= Starting Server =======")
    thread.start()
def launch_server ( server_root ) : import threading if server_root is not None : root_location = os . path . realpath ( server_root ) else : root_location = os . path . dirname ( os . path . realpath ( sys . argv [ 0 ] ) ) thread = threading . Thread ( target = start_server , kwargs = { "document_root" : root_location } ) thread . daemon = True print ( "\n======= Starting Server =======" ) thread . start ( )