file_manager: move modules to its own package
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
346015e528
commit
261fbbc867
|
@ -0,0 +1,15 @@
|
||||||
|
# Package definition for the file_manager
|
||||||
|
#
|
||||||
|
# Copyright (C) 2021 Eric Callahan <arksine.code@gmail.com>
|
||||||
|
#
|
||||||
|
# This file may be distributed under the terms of the GNU GPLv3 license.
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
from . import file_manager as fm
|
||||||
|
|
||||||
|
from typing import TYPE_CHECKING
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from confighelper import ConfigHelper
|
||||||
|
|
||||||
|
def load_component(config: ConfigHelper) -> fm.FileManager:
|
||||||
|
return fm.load_component(config)
|
|
@ -38,9 +38,9 @@ if TYPE_CHECKING:
|
||||||
from moonraker import Server
|
from moonraker import Server
|
||||||
from confighelper import ConfigHelper
|
from confighelper import ConfigHelper
|
||||||
from websockets import WebRequest
|
from websockets import WebRequest
|
||||||
from . import database
|
from components import database
|
||||||
from . import klippy_apis
|
from components import klippy_apis
|
||||||
from . import shell_command
|
from components import shell_command
|
||||||
DBComp = database.MoonrakerDatabase
|
DBComp = database.MoonrakerDatabase
|
||||||
APIComp = klippy_apis.KlippyAPI
|
APIComp = klippy_apis.KlippyAPI
|
||||||
SCMDComp = shell_command.ShellCommandFactory
|
SCMDComp = shell_command.ShellCommandFactory
|
Loading…
Reference in New Issue