mirror of
https://codeberg.org/kazephil/Little_CAT_Helpers.git
synced 2023-08-25 14:05:45 +02:00
Convert configpath from str to Path object.
This commit is contained in:
parent
a416e31727
commit
6867f3720b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user