Skip to content

Commit

Permalink
Fix init_user_files config file location
Browse files Browse the repository at this point in the history
  • Loading branch information
korcankaraokcu committed Jun 2, 2024
1 parent 9990849 commit 013cd34
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libpince/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 013cd34

Please sign in to comment.