From 013cd341eaf6ab3828ca877018977b9d532d56db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Korcan=20Karaok=C3=A7u?= Date: Sun, 2 Jun 2024 22:40:50 +0300 Subject: [PATCH] Fix init_user_files config file location --- libpince/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libpince/utils.py b/libpince/utils.py index cba1cfb2..daed9e18 100644 --- a/libpince/utils.py +++ b/libpince/utils.py @@ -1045,8 +1045,9 @@ def get_module_name(module): #:tag:Utilities def init_user_files(): """Initializes user files""" - if not os.path.exists(typedefs.USER_PATHS.ROOT): - os.makedirs(typedefs.USER_PATHS.ROOT) + root_path = get_user_path(typedefs.USER_PATHS.ROOT) + if not os.path.exists(root_path): + os.makedirs(root_path) for file in typedefs.USER_PATHS.get_init_files(): file = get_user_path(file) try: