parameters: (server_root)
docstring: Launches the ArdublocklyServer.
docstring_summary: Launches the ArdublocklyServer.
docstring_tokens: Launches the ArdublocklyServer .
function: 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()
function_tokens: 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 ( )