core (constants): don't parse sat.conf from current dir anymore + parse root_dir last
This commit is contained in:
parent
7f2c6cd8a6
commit
21591bce92
1 changed files with 2 additions and 1 deletions
|
|
@ -455,11 +455,12 @@ if (
|
|||
import os
|
||||
root_dir = Path(sat.__file__).parent
|
||||
Const.CONFIG_PATHS = (
|
||||
["/etc/", "~/", "~/.", "", root_dir, "."]
|
||||
["/etc/", "~/", "~/."]
|
||||
+ [
|
||||
"%s/" % path
|
||||
for path in list(BaseDirectory.load_config_paths(Const.APP_NAME_FILE))
|
||||
]
|
||||
+ [root_dir]
|
||||
)
|
||||
|
||||
# on recent versions of Flatpak, FLATPAK_ID is set at run time
|
||||
|
|
|
|||
Loading…
Reference in a new issue