components: correct imports

All imports must now be relative to work correctly with the
moonraker parent package.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan
2022-10-18 10:31:41 -04:00
parent b9a17e07e9
commit 0f8638fec7
38 changed files with 135 additions and 146 deletions

View File

@@ -8,8 +8,8 @@ import asyncio
import pathlib
import logging
import json
from websockets import BaseSocketClient
from utils import get_unix_peer_credentials
from ..websockets import BaseSocketClient
from ..utils import get_unix_peer_credentials
# Annotation imports
from typing import (
@@ -22,10 +22,10 @@ from typing import (
)
if TYPE_CHECKING:
from moonraker import Server
from confighelper import ConfigHelper
from websockets import WebRequest
from klippy_connection import KlippyConnection as Klippy
from ..server import Server
from ..confighelper import ConfigHelper
from ..websockets import WebRequest
from ..klippy_connection import KlippyConnection as Klippy
UNIX_BUFFER_LIMIT = 20 * 1024 * 1024