From 7299c2e07ee77b8ed3075f746bab1eeb988166b4 Mon Sep 17 00:00:00 2001 From: krateng Date: Tue, 21 Dec 2021 07:30:38 +0100 Subject: [PATCH] Finishing touches --- maloja/globalconf.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/maloja/globalconf.py b/maloja/globalconf.py index 7d93c62..9e672f2 100644 --- a/maloja/globalconf.py +++ b/maloja/globalconf.py @@ -36,7 +36,7 @@ def get_env_vars(key,pathsuffix=[]): directory_info = { "config":{ - "sentinel":"settings", + "sentinel":"rules", "possible_folders":[ "/etc/maloja", os.path.expanduser("~/.local/share/maloja") @@ -80,19 +80,19 @@ def find_good_folder(datatype,configobject): # check each possible folder if its used for p in info['possible_folders']: if os.path.exists(pthj(p,info['sentinel'])): - print(p,"has been determined as maloja's folder for",datatype) + #print(p,"has been determined as maloja's folder for",datatype) configobject[info['setting']] = p return p - print("Could not find previous",datatype,"folder") + #print("Could not find previous",datatype,"folder") # check which one we can use for p in info['possible_folders']: if is_dir_usable(p): - print(p,"has been selected as maloja's folder for",datatype) + #print(p,"has been selected as maloja's folder for",datatype) configobject[info['setting']] = p return p - print("No folder can be used for",datatype) - print("This should not happen!") + #print("No folder can be used for",datatype) + #print("This should not happen!") @@ -246,7 +246,6 @@ else: } - data_directories = { "auth":pthj(dir_settings['state'],"auth"), "backups":pthj(dir_settings['state'],"backups"),