borgend.py

changeset 1
4cdc9c1f6b28
parent 0
f5aecaad0bcf
child 2
e343594c0014
--- a/borgend.py	Thu Jan 18 21:42:00 2018 +0000
+++ b/borgend.py	Thu Jan 18 23:01:16 2018 +0000
@@ -1,22 +1,20 @@
 #!/usr/local/bin/python3
-import rumps
-#import json
-#import multiprocessing as mp
-import threading as th
-import queue
-from pkg_resources import resource_string
-from config import settings
 
-# f=io.open('status.json', 'r');
-# data=json.load(f);
-
-class BorgendTray(rumps.App):
-    @rumps.clicked("Status...")
-    def prefs(self, _):
-        rumps.alert("None")
-
+from backup import Backup
+from config import settings
+import ui
+import queue
+import scheduler
 
 if __name__ == "__main__":
     print(settings)
     #BorgendTray("Borgend").run()
-    
+
+backupconfigs=settings['backups']
+backups=[None]*len(backupconfigs);
+
+for i in range(len(backupconfigs)):
+    backups[i]=Backup(i, backupconfigs[i])
+
+
+schedul
\ No newline at end of file

mercurial