From 6867f3720be47656bc3dc7958318d1e02c8eed34 Mon Sep 17 00:00:00 2001 From: Kazephil Date: Sat, 16 Jul 2022 14:54:04 +0900 Subject: [PATCH] Convert configpath from str to Path object. --- omegat_tools/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/omegat_tools/common.py b/omegat_tools/common.py index b8bf7c3..2a4b08c 100644 --- a/omegat_tools/common.py +++ b/omegat_tools/common.py @@ -32,7 +32,7 @@ def set_basepath(configpath): # If not, use the user's 'Documents' folder if it exists, # and the user folder if not, as a default. - candidates = [configpath, DEFAULT_DOCHOME, USER_HOME] + candidates = [Path(configpath), DEFAULT_DOCHOME, USER_HOME] basepath = None # Read each candidate path in term, and set the first valid path