mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 08:43:36 +05:00
refactor(KIAUH): use pathlib instead of os where possible. consistent use of pathlib.
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -9,9 +9,8 @@
|
||||
# This file may be distributed under the terms of the GNU GPLv3 license #
|
||||
# ======================================================================= #
|
||||
|
||||
from os.path import join, dirname, abspath
|
||||
from pathlib import Path
|
||||
|
||||
APPLICATION_ROOT = dirname(dirname(abspath(__file__)))
|
||||
KIAUH_CFG = join(APPLICATION_ROOT, "kiauh.cfg")
|
||||
KIAUH_BACKUP_DIR = f"{Path.home()}/kiauh-backups"
|
||||
APPLICATION_ROOT = Path(__file__).resolve().parent.parent
|
||||
KIAUH_CFG = APPLICATION_ROOT.joinpath("kiauh.cfg")
|
||||
KIAUH_BACKUP_DIR = Path.home().joinpath("kiauh-backups")
|
||||
|
||||
Reference in New Issue
Block a user