/
Council.py
111 lines (100 loc) · 3.13 KB
/
Council.py
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
from time import time
import threading
#Imports
#Team modules
wait_Tkint=0
wait_Citidel=0
wait_Davos=0
wait_Lang=0
wait_Mel=0
wait_LF=0
wait_Bran=0
wait_Luwin=0
def call_council():
print 'calling council'
start_time=time()
def get_Tkint():
a=time()
global wait_Tkint
from Tkint import Tkint
wait_Tkint=Tkint
with open('Logger//Time_log.txt','a') as f:
f.write('\nTkint time log- '+str(time()-a))
getting_Tkint=threading.Thread(target=get_Tkint)
getting_Tkint.start()
def get_Bran():
a=time()
global wait_Bran
from Bran import Bran
wait_Bran=Bran
with open('Logger//Time_log.txt','a') as f:
f.write('\nBran time log- '+str(time()-a))
getting_Bran=threading.Thread(target=get_Bran)
getting_Bran.start()
def get_Luwin():
a=time()
global wait_Luwin
from Luwin import Luwin
wait_Luwin=Luwin
with open('Logger//Time_log.txt','a') as f:
f.write('\nLuwin time log- '+str(time()-a))
getting_Luwin=threading.Thread(target=get_Luwin)
getting_Luwin.start()
def get_Citidel():
a=time()
global wait_Citidel
from Citidel import Citidel
wait_Citidel=Citidel
with open('Logger//Time_log.txt','a') as f:
f.write('\nCitidel time log- '+str(time()-a))
getting_Citidel=threading.Thread(target=get_Citidel)
getting_Citidel.start()
def get_Lang():
a=time()
global wait_Lang
from High_Valyrian import The_Language
wait_Lang=The_Language
with open('Logger//Time_log.txt','a') as f:
f.write('\nLanguage time log- '+str(time()-a))
getting_Lang=threading.Thread(target=get_Lang)
getting_Lang.start()
def get_Davos():
a=time()
global wait_Davos
from Davos import Davos
wait_Davos=Davos
with open('Logger//Time_log.txt','a') as f:
f.write('\nDavos time log- '+str(time()-a))
getting_Davos=threading.Thread(target=get_Davos)
getting_Davos.start()
def get_Mel():
global wait_Mel
a=time()
from Mel import Mel
wait_Mel=Mel
with open('Logger//Time_log.txt','a') as f:
f.write('\nMel time log- '+str(time()-a))
getting_Mel=threading.Thread(target=get_Mel)
getting_Mel.start()
def get_LF():
a=time()
global wait_LF
from LittleFinger import LittleFinger
wait_LF=LittleFinger
with open('Logger//Time_log.txt','a') as f:
f.write('\nLittleFinger time log- '+str(time()-a))
getting_LF=threading.Thread(target=get_LF)
getting_LF.start()
print 'invitations sent'
getting_Citidel.join()
getting_Mel.join()
getting_Lang.join()
getting_Tkint.join()
getting_Davos.join()
getting_LF.join()
getting_Bran.join()
getting_Luwin.join()
print 'The Council has been assembled'
with open('Logger//Time_log.txt','a') as f:
f.write('\nTotal time log- '+str(time()-start_time)+'\n\n\n')
return wait_Citidel,wait_Mel,wait_Lang,wait_Tkint,wait_Davos,wait_LF,wait_Bran, wait_Luwin