diff options
author | 2021-07-17 22:40:16 +0100 | |
---|---|---|
committer | 2021-07-17 22:40:16 +0100 | |
commit | ca21c68a429c91d8676a3db6ff1d43c79ea56502 (patch) | |
tree | a5c4bde0b60a372b9b17d056cd8cfed4613172b4 /arthur/bot.py | |
parent | fix: linting compliance (diff) |
fix: correctly expand home to find kubeconfig
Diffstat (limited to 'arthur/bot.py')
-rw-r--r-- | arthur/bot.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |