Correct processing of custom config dir

This commit is contained in:
2023-11-09 04:56:43 +00:00
parent bc67ef5fd1
commit b8197d7974
+2 -2
View File
@@ -106,9 +106,9 @@ def _confdir(args):
if confdir.exists() and not confdir.is_dir():
if confdir.name != config.conffile.name:
raise ValueError("Config path is not a directory")
# Accidentally pointed to the cista.toml, use parent
# Accidentally pointed to the db.toml, use parent
confdir = confdir.parent
config.conffile = config.conffile.with_parent(confdir)
config.conffile = confdir / config.conffile.name
def _user(args):