diff --git a/cpu_governor_auto_adjust/app_class.py b/cpu_governor_auto_adjust/app_class.py index 2f6658b..ee62c0f 100644 --- a/cpu_governor_auto_adjust/app_class.py +++ b/cpu_governor_auto_adjust/app_class.py @@ -1,4 +1,4 @@ -from logger import getLogger +from cpu_governor_auto_adjust.logger import getLogger from cpu_governor_auto_adjust.config import Config diff --git a/cpu_governor_auto_adjust/config.py b/cpu_governor_auto_adjust/config.py index f364c73..5746463 100644 --- a/cpu_governor_auto_adjust/config.py +++ b/cpu_governor_auto_adjust/config.py @@ -1,5 +1,5 @@ import logging -from logger import getLogger +from cpu_governor_auto_adjust.logger import getLogger from pathlib import Path from lxml import etree from functools import cached_property, lru_cache diff --git a/cpu_governor_auto_adjust/cpu_governor_auto_adjust.py b/cpu_governor_auto_adjust/cpu_governor_auto_adjust.py index 3b05297..e44083d 100755 --- a/cpu_governor_auto_adjust/cpu_governor_auto_adjust.py +++ b/cpu_governor_auto_adjust/cpu_governor_auto_adjust.py @@ -1,11 +1,11 @@ #!/usr/bin/env python3 import asyncio from pathlib import Path -from logger import getLogger -from mapping import trigger_mapping -from config import Config -from governor import GovernorControl -from schedule import TriggerScheduler +from cpu_governor_auto_adjust.logger import getLogger +from cpu_governor_auto_adjust.mapping import trigger_mapping +from cpu_governor_auto_adjust.config import Config +from cpu_governor_auto_adjust.governor import GovernorControl +from cpu_governor_auto_adjust.schedule import TriggerScheduler async def main() -> None: diff --git a/cpu_governor_auto_adjust/governor.py b/cpu_governor_auto_adjust/governor.py index ba86f19..9d7d830 100644 --- a/cpu_governor_auto_adjust/governor.py +++ b/cpu_governor_auto_adjust/governor.py @@ -1,8 +1,8 @@ -from app_class import AppClass -from config import Config +from cpu_governor_auto_adjust.app_class import AppClass +from cpu_governor_auto_adjust.config import Config from cpufreq import cpuFreq, cpufreq # type: ignore from functools import cached_property -from exceptions import GovernorNotFound +from cpu_governor_auto_adjust.exceptions import GovernorNotFound from typing import Optional, NamedTuple diff --git a/cpu_governor_auto_adjust/mapping.py b/cpu_governor_auto_adjust/mapping.py index 532c932..5ce3e59 100644 --- a/cpu_governor_auto_adjust/mapping.py +++ b/cpu_governor_auto_adjust/mapping.py @@ -1,5 +1,5 @@ from types import MappingProxyType -from triggers import TestTrigger1, TestTrigger2, RoonTrigger +from cpu_governor_auto_adjust.triggers import TestTrigger1, TestTrigger2, RoonTrigger _trigger_mapping = { 'test_trigger1': TestTrigger1, diff --git a/cpu_governor_auto_adjust/schedule.py b/cpu_governor_auto_adjust/schedule.py index 1b338be..d6ad626 100644 --- a/cpu_governor_auto_adjust/schedule.py +++ b/cpu_governor_auto_adjust/schedule.py @@ -1,7 +1,7 @@ -from app_class import AppClass -from config import Config -from trigger import Trigger -from governor import GovernorControl, Governor, _governor_list +from cpu_governor_auto_adjust.app_class import AppClass +from cpu_governor_auto_adjust.config import Config +from cpu_governor_auto_adjust.trigger import Trigger +from cpu_governor_auto_adjust.governor import GovernorControl, Governor, _governor_list import asyncio from asyncio import Task from functools import cached_property diff --git a/cpu_governor_auto_adjust/trigger.py b/cpu_governor_auto_adjust/trigger.py index 0cf1e1d..5f9d27d 100644 --- a/cpu_governor_auto_adjust/trigger.py +++ b/cpu_governor_auto_adjust/trigger.py @@ -1,7 +1,7 @@ -from app_class import AppClass -from config import Config, TriggerTuple -from exceptions import MissingConfig, TriggerImportError -from governor import Governor, _governor_list +from cpu_governor_auto_adjust.app_class import AppClass +from cpu_governor_auto_adjust.config import Config, TriggerTuple +from cpu_governor_auto_adjust.exceptions import MissingConfig, TriggerImportError +from cpu_governor_auto_adjust.governor import Governor, _governor_list from functools import cached_property diff --git a/cpu_governor_auto_adjust/triggers/roon.py b/cpu_governor_auto_adjust/triggers/roon.py index 9e8df84..b64071f 100644 --- a/cpu_governor_auto_adjust/triggers/roon.py +++ b/cpu_governor_auto_adjust/triggers/roon.py @@ -1,5 +1,5 @@ -from trigger import Trigger -from config import Config +from cpu_governor_auto_adjust.trigger import Trigger +from cpu_governor_auto_adjust.config import Config from roonapi import RoonApi, RoonDiscovery # type: ignore from functools import cached_property from typing import Any, NamedTuple, Union diff --git a/cpu_governor_auto_adjust/triggers/test_trigger1.py b/cpu_governor_auto_adjust/triggers/test_trigger1.py index 6bb6b9e..ea05628 100644 --- a/cpu_governor_auto_adjust/triggers/test_trigger1.py +++ b/cpu_governor_auto_adjust/triggers/test_trigger1.py @@ -1,5 +1,5 @@ -from trigger import Trigger -from config import Config +from cpu_governor_auto_adjust.trigger import Trigger +from cpu_governor_auto_adjust.config import Config import random class TestTrigger1(Trigger): diff --git a/cpu_governor_auto_adjust/triggers/test_trigger2.py b/cpu_governor_auto_adjust/triggers/test_trigger2.py index 4c3f3a9..2373afe 100644 --- a/cpu_governor_auto_adjust/triggers/test_trigger2.py +++ b/cpu_governor_auto_adjust/triggers/test_trigger2.py @@ -1,5 +1,5 @@ from .test_trigger1 import TestTrigger1 -from config import Config +from cpu_governor_auto_adjust.config import Config class TestTrigger2(TestTrigger1): def __init__(self, _config: Config) -> None: