Correct processing of custom config dir

This commit is contained in:
Leo Vasanko 2023-11-08 12:56:43 -08:00
parent 876d76bc1f
commit 9bbbc829a1

View File

@ -106,9 +106,9 @@ def _confdir(args):
if confdir.exists() and not confdir.is_dir(): if confdir.exists() and not confdir.is_dir():
if confdir.name != config.conffile.name: if confdir.name != config.conffile.name:
raise ValueError("Config path is not a directory") 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 confdir = confdir.parent
config.conffile = config.conffile.with_parent(confdir) config.conffile = confdir / config.conffile.name
def _user(args): def _user(args):