# HG changeset patch # User Goffi # Date 1580322488 -3600 # Node ID c3e8ddf3a071ae98da84771ce92b6f8c3c050f3f # Parent 320b762cbdf0fcda4c0616e6b963d248eb3a1fb1 core (constants): use parent of "sat" module dir as last config path diff -r 320b762cbdf0 -r c3e8ddf3a071 sat/core/constants.py --- a/sat/core/constants.py Wed Jan 29 19:21:16 2020 +0100 +++ b/sat/core/constants.py Wed Jan 29 19:28:08 2020 +0100 @@ -453,7 +453,9 @@ ] else: import os - root_dir = dirname(sat.__file__) + '/' + # we use parent of "sat" module dir as last config path, this is useful for + # per instance configurations (e.g. a dev instance and a main instance) + root_dir = dirname(dirname(sat.__file__)) + '/' Const.CONFIG_PATHS = ( ["/etc/", "~/", "~/."] + [