mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 16:53:36 +05:00
refactor(KIAUH): add application root to sys path
shortens imports and helps with auto imports from IDE Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -9,7 +9,11 @@
|
||||
# This file may be distributed under the terms of the GNU GPLv3 license #
|
||||
# ======================================================================= #
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
APPLICATION_ROOT = Path(__file__).resolve().parent.parent
|
||||
KIAUH_CFG = APPLICATION_ROOT.joinpath("kiauh.cfg")
|
||||
PROJECT_ROOT = Path(__file__).resolve().parent.parent
|
||||
KIAUH_CFG = PROJECT_ROOT.joinpath("kiauh.cfg")
|
||||
|
||||
APPLICATION_ROOT = Path(__file__).resolve().parent
|
||||
sys.path.append(str(APPLICATION_ROOT))
|
||||
|
||||
Reference in New Issue
Block a user