From 9bbbc829a13056ccbfc74773c24d8c4c187c9883 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Wed, 8 Nov 2023 12:56:43 -0800 Subject: [PATCH] Correct processing of custom config dir --- cista/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cista/__main__.py b/cista/__main__.py index 94f2afb..b4b7fc9 100644 --- a/cista/__main__.py +++ b/cista/__main__.py @@ -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):