fixed dumb fuck up
This commit is contained in:
@@ -10,12 +10,12 @@ from .config_directory import get_config_directory
|
||||
class Locations:
|
||||
def __init__(self, application_name: os.PathLike = "music-kraken"):
|
||||
self.TEMP_DIRECTORY = Path(tempfile.gettempdir(), application_name)
|
||||
self.TEMP_DIRECTORY.mkdirs(exist_ok=True)
|
||||
self.TEMP_DIRECTORY.mkdir(exist_ok=True, parents=True)
|
||||
|
||||
self.MUSIC_DIRECTORY = get_music_directory()
|
||||
|
||||
self.CONFIG_DIRECTORY = get_config_directory(str(application_name))
|
||||
self.CONFIG_DIRECTORY.mkdirs(exist_ok=True)
|
||||
self.CONFIG_DIRECTORY.mkdir(exist_ok=True, parents=True)
|
||||
self.CONFIG_FILE = Path(self.CONFIG_DIRECTORY, f"{application_name}.conf")
|
||||
|
||||
def get_log_file(self, file_name: os.PathLike) -> Path:
|
||||
|
||||
@@ -6,6 +6,9 @@ from typing import List, Tuple
|
||||
from .path_manager import LOCATIONS
|
||||
from .config import LOGGING_SECTION, AUDIO_SECTION, CONNECTION_SECTION, MISC_SECTION, PATHS_SECTION
|
||||
|
||||
|
||||
CONFIG_FILE = LOCATIONS.CONFIG_FILE
|
||||
|
||||
# modifies the garbage collector to speed up the program
|
||||
# https://mkennedy.codes/posts/python-gc-settings-change-this-and-make-your-app-go-20pc-faster/
|
||||
# https://web.archive.org/web/20221124122222/https://mkennedy.codes/posts/python-gc-settings-change-this-and-make-your-app-go-20pc-faster/
|
||||
|
||||
Reference in New Issue
Block a user