# HG changeset patch # User Goffi # Date 1580321141 -3600 # Node ID 02325c3141ddbefbbc62324f626310bc2754faf2 # Parent 830fce0db15da7b189dfa2aa577c8e457a0a694b core (constants): parse `sat.conf` from `sat` module dir diff -r 830fce0db15d -r 02325c3141dd sat/core/constants.py --- a/sat/core/constants.py Wed Jan 29 18:54:40 2020 +0100 +++ b/sat/core/constants.py Wed Jan 29 19:05:41 2020 +0100 @@ -23,6 +23,7 @@ except ImportError: BaseDirectory = None import sat +from pathlib import Path class Const(object): @@ -452,8 +453,9 @@ ] else: import os + root_dir = Path(sat.__file__).parent Const.CONFIG_PATHS = ( - ["/etc/", "~/", "~/.", "", "."] + ["/etc/", "~/", "~/.", "", root_dir, "."] + [ "%s/" % path for path in list(BaseDirectory.load_config_paths(Const.APP_NAME_FILE))