borgend.py

changeset 8
7b2d2eac6a48
parent 4
d72c4844e791
child 9
aa121291eb0e
--- a/borgend.py	Sat Jan 20 14:04:51 2018 +0000
+++ b/borgend.py	Sat Jan 20 15:08:16 2018 +0000
@@ -9,12 +9,8 @@
 from backup import Backup
 from config import settings
 from queue import Queue
-import ui
+from ui import BorgendTray
 
-if __name__ == "__main__":
-    #print(settings)
-    #BorgendTray("Borgend").run()
-    pass
 
 backupconfigs=settings['backups']
 backups=[None]*len(backupconfigs);
@@ -24,6 +20,12 @@
     backups[i]=Backup(i, backupconfigs[i])
 
 queue=Queue()
-backups[0].create(queue)
+#print(backups[0].create(queue))
+backups[0].schedule()
+
+#backups[0].join()
 
-backups[0].join()
+if __name__ == "__main__":
+    #print(settings)
+    BorgendTray("Borgend").run()
+    pass

mercurial