-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdesktop.pyw
44 lines (43 loc) · 1.14 KB
/
desktop.pyw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from explorer_web_server.cache import application_cache
from explorer_web_server.memory import memory
from explorer_web_server.web_server import application
import explorer_database
import explorer_http_tracker
import explorer_krpc_v4
import explorer_krpc_v6
import explorer_peer_wire_v4
import explorer_peer_wire_v6
import explorer_spider
import explorer_udp_tracker_v4
import explorer_udp_tracker_v6
import gc
import sys
import webview
explorer_spider.launch(
explorer_database,
explorer_http_tracker,
explorer_krpc_v4,
explorer_krpc_v6,
explorer_peer_wire_v4,
explorer_peer_wire_v6,
explorer_udp_tracker_v4,
explorer_udp_tracker_v6
)
gc.enable()
memory.explorer_database = explorer_database
memory.explorer_krpc_v4 = explorer_krpc_v4
memory.explorer_krpc_v6 = explorer_krpc_v6
memory.explorer_peer_wire_v4 = explorer_peer_wire_v4
memory.explorer_peer_wire_v6 = explorer_peer_wire_v6
memory.explorer_spider = explorer_spider
webview.create_window(
title = 'Explorer',
url = application,
width = 1024,
height = 768,
resizable = False,
text_select = True
)
webview.start()
application_cache.clear()
sys.exit(0)