From 0a3d6add836de1d85e35d40c3a6d0ebe8ebb2e8e Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 15 Jul 2023 01:29:41 +0200 Subject: [PATCH] Support `./config.yaml` as a config file location. --- platypush/config/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platypush/config/__init__.py b/platypush/config/__init__.py index aa9ca10949..3741ee21b7 100644 --- a/platypush/config/__init__.py +++ b/platypush/config/__init__.py @@ -36,9 +36,11 @@ class Config: """ # Default config file locations: + # - current directory # - $HOME/.config/platypush/config.yaml # - /etc/platypush/config.yaml _cfgfile_locations = [ + os.path.join(os.path.abspath('.'), 'config.yaml'), os.path.join(os.path.expanduser('~'), '.config', 'platypush', 'config.yaml'), os.path.join(os.sep, 'etc', 'platypush', 'config.yaml'), ]