Skip to content

Commit

Permalink
ref: rename environment module to config
Browse files Browse the repository at this point in the history
  • Loading branch information
2mal3 committed Feb 22, 2025
1 parent a551c53 commit 9bd27ee
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion somnus/discord_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from discord.ext import tasks
from mcstatus.status_response import JavaStatusResponse

from somnus.environment import CONFIG, Config
from somnus.config import CONFIG, Config
from somnus.language_handler import LH
from somnus.logger import log
from somnus.logic import start, stop, utils, world_selector
Expand Down
2 changes: 1 addition & 1 deletion somnus/logger.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
from pathlib import Path

from somnus.environment import CONFIG
from somnus.config import CONFIG

_LEVEL = logging.DEBUG if CONFIG.DEBUG else logging.INFO

Expand Down
2 changes: 1 addition & 1 deletion somnus/logic/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from pexpect import pxssh
from wakeonlan import send_magic_packet

from somnus.environment import Config, CONFIG
from somnus.config import Config, CONFIG
from somnus.logger import log
from somnus.language_handler import LH
from somnus.logic.utils import (
Expand Down
2 changes: 1 addition & 1 deletion somnus/logic/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from pexpect import pxssh

from somnus.environment import Config, CONFIG
from somnus.config import Config, CONFIG
from somnus.logger import log
from somnus.language_handler import LH
from somnus.logic.utils import (
Expand Down
2 changes: 1 addition & 1 deletion somnus/logic/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from ping3 import ping
from pydantic import BaseModel

from somnus.environment import CONFIG, Config
from somnus.config import CONFIG, Config
from somnus.logger import log
from somnus.logic.world_selector import get_current_world

Expand Down
2 changes: 1 addition & 1 deletion somnus/logic/world_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import aiofiles
from pydantic import BaseModel, field_validator

from somnus.environment import CONFIG, Config
from somnus.config import CONFIG, Config
from somnus.logger import log

WORLD_SELECTOR_CONFIG_FILE_PATH = "data/world_selector_data.json"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_logic/test_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from podman.domain.containers import Container

from somnus.logic import start
from somnus.environment import Config
from somnus.config import Config


def test_main():
Expand Down

0 comments on commit 9bd27ee

Please sign in to comment.