diff options
author | aristocratos <gnmjpl@gmail.com> | 2021-04-25 13:36:33 +0200 |
---|---|---|
committer | aristocratos <gnmjpl@gmail.com> | 2021-04-25 13:36:33 +0200 |
commit | f5df9aa0cdf35cc82a0beedf2874eabb9026931a (patch) | |
tree | 05cd3bd6eda46a4b36a142cef90aa509b497ac4c | |
parent | 878abb5b064aa86b75a796438e9c3ae463643687 (diff) |
Fixed: Check for config in /usr/local/etc instead of /etc on BSD
-rwxr-xr-x | bpytop.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -520,7 +520,9 @@ class Config: conf_file: str = "" if os.path.isfile(self.config_file): conf_file = self.config_file - elif os.path.isfile("/etc/bpytop.conf"): + elif SYSTEM == "BSD" and os.path.isfile("/usr/local/etc/bpytop.conf"): + conf_file = "/usr/local/etc/bpytop.conf" + elif SYSTEM != "BSD" and os.path.isfile("/etc/bpytop.conf"): conf_file = "/etc/bpytop.conf" else: return new_config |