From 70733a2895b6d4aac730e496cc7908419c451bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gon=C3=A7alves?= Date: Sat, 4 Nov 2023 19:28:41 +0100 Subject: [PATCH] fix: custom config file should expand path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel Gonçalves --- ovh/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ovh/config.py b/ovh/config.py index 10b6347..4b798a9 100644 --- a/ovh/config.py +++ b/ovh/config.py @@ -114,7 +114,7 @@ def get(self, section, name): def read(self, config_file): # Read an other config file - self.config.read(config_file) + self.config.read(os.path.realpath(os.path.expanduser(config_file))) #: System wide instance :py:class:`ConfigurationManager` instance