Convert configpath from str to Path object.

This commit is contained in:
Philippe Tourigny 2022-07-16 14:54:04 +09:00
parent a416e31727
commit 6867f3720b

View File

@ -32,7 +32,7 @@ def set_basepath(configpath):
# If not, use the user's 'Documents' folder if it exists, # If not, use the user's 'Documents' folder if it exists,
# and the user folder if not, as a default. # and the user folder if not, as a default.
candidates = [configpath, DEFAULT_DOCHOME, USER_HOME] candidates = [Path(configpath), DEFAULT_DOCHOME, USER_HOME]
basepath = None basepath = None
# Read each candidate path in term, and set the first valid path # Read each candidate path in term, and set the first valid path