From 8e45c373160bdd857155026fe8e206a6af83d121 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Mon, 1 Dec 2014 23:21:33 -0800 Subject: [PATCH] supervisorctl read from ~/.supervisorctl.conf This is a good place for users to do user-specific customizations, like change the prompt or add plug-ins. --- supervisor/options.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/supervisor/options.py b/supervisor/options.py index b0641db8e..38c26dfef 100644 --- a/supervisor/options.py +++ b/supervisor/options.py @@ -110,6 +110,11 @@ def __init__(self, require_configfile=True): 'supervisord.conf', 'etc/supervisord.conf', '/etc/supervisord.conf'] + if self.progname.endswith('supervisorctl'): + dot_supervisorctl_conf = os.path.join( + os.path.expanduser('~'), + '.supervisorctl.conf') + searchpaths.insert(0, dot_supervisorctl_conf) self.searchpaths = searchpaths def default_configfile(self):