diff --git a/maloja/globalconf.py b/maloja/globalconf.py index 1643c7f..644f537 100644 --- a/maloja/globalconf.py +++ b/maloja/globalconf.py @@ -111,15 +111,8 @@ for dirtype in dir_settings: except: pass -from pprint import pprint -print("") -print("") -pprint(dir_settings) -print("") -print("") -if any((dir_settings[s] is None) for s in dir_settings): - print("NOT ALL DIRECTORIES SET!") +assert all((dir_settings[s] is not None) for s in dir_settings) data_directories = { @@ -134,12 +127,6 @@ data_directories = { "cache":pthj(dir_settings['cache']), } -print("") -print("") -pprint(data_directories) -print("") -print("") - data_dir = { k:lambda *x,k=k: pthj(data_directories[k],*x) for k in data_directories diff --git a/maloja/proccontrol/setup.py b/maloja/proccontrol/setup.py index e819c99..ab06fc0 100644 --- a/maloja/proccontrol/setup.py +++ b/maloja/proccontrol/setup.py @@ -50,7 +50,6 @@ def setup(): # OWN API KEY - print(data_dir['clients']("authenticated_machines.tsv")) if os.path.exists(data_dir['clients']("authenticated_machines.tsv")): pass else: diff --git a/maloja/proccontrol/tasks/backup.py b/maloja/proccontrol/tasks/backup.py index 9cec3f0..6fede03 100644 --- a/maloja/proccontrol/tasks/backup.py +++ b/maloja/proccontrol/tasks/backup.py @@ -30,10 +30,8 @@ def backup(folder,level="full"): for g in selected_files[cat]: real_files[cat] += glob.glob(catfolder(g)) - log("Creating backup of " + str(len(real_files)) + " files...") + log("Creating backup...") - from pprint import pprint - pprint(real_files) now = datetime.utcnow() timestr = now.strftime("%Y_%m_%d_%H_%M_%S")