core (constants): use parent of "sat" module dir as last config path

This commit is contained in:
Goffi 2020-01-29 19:28:08 +01:00
commit 3d86f0c983

View file

@ -453,7 +453,9 @@ if (
]
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/", "~/", "~/."]
+ [