1 #!/usr/local/bin/python3 |
1 #!/usr/local/bin/python3 |
2 import rumps |
2 |
3 #import json |
3 from backup import Backup |
4 #import multiprocessing as mp |
4 from config import settings |
5 import threading as th |
5 import ui |
6 import queue |
6 import queue |
7 from pkg_resources import resource_string |
7 import scheduler |
8 from config import settings |
|
9 |
|
10 # f=io.open('status.json', 'r'); |
|
11 # data=json.load(f); |
|
12 |
|
13 class BorgendTray(rumps.App): |
|
14 @rumps.clicked("Status...") |
|
15 def prefs(self, _): |
|
16 rumps.alert("None") |
|
17 |
|
18 |
8 |
19 if __name__ == "__main__": |
9 if __name__ == "__main__": |
20 print(settings) |
10 print(settings) |
21 #BorgendTray("Borgend").run() |
11 #BorgendTray("Borgend").run() |
22 |
12 |
|
13 backupconfigs=settings['backups'] |
|
14 backups=[None]*len(backupconfigs); |
|
15 |
|
16 for i in range(len(backupconfigs)): |
|
17 backups[i]=Backup(i, backupconfigs[i]) |
|
18 |
|
19 |
|
20 schedul |