From ca21c68a429c91d8676a3db6ff1d43c79ea56502 Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Sat, 17 Jul 2021 22:40:16 +0100 Subject: fix: correctly expand home to find kubeconfig --- arthur/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arthur/bot.py') diff --git a/arthur/bot.py b/arthur/bot.py index 24d7546..4bb14b8 100644 --- a/arthur/bot.py +++ b/arthur/bot.py @@ -38,7 +38,7 @@ class KingArthur(Bot): DiscordComponents(self) # Authenticate with Kubernetes - if Path("~/.kube/config").exists(): + if (Path.home() / ".kube/config").exists(): await config.load_kube_config() else: config.load_incluster_config() -- cgit v1.2.3