MCPcopy
hub / github.com/corpnewt/GenSMBIOS / custom_quit

Method custom_quit

Scripts/utils.py:238–255  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

236 print('\033[8;{};{}t'.format(height, width))
237
238 def custom_quit(self):
239 self.head()
240 print("by CorpNewt\n")
241 print("Thanks for testing it out, for bugs/comments/complaints")
242 print("send me a message on Reddit, or check out my GitHub:\n")
243 print("www.reddit.com/u/corpnewt")
244 print("www.github.com/corpnewt\n")
245 # Get the time and wish them a good morning, afternoon, evening, and night
246 hr = datetime.datetime.now().time().hour
247 if hr > 3 and hr < 12:
248 print("Have a nice morning!\n\n")
249 elif hr >= 12 and hr < 17:
250 print("Have a nice afternoon!\n\n")
251 elif hr >= 17 and hr < 21:
252 print("Have a nice evening!\n\n")
253 else:
254 print("Have a nice night!\n\n")
255 exit(0)

Callers 4

_get_plistMethod · 0.80
_generate_smbiosMethod · 0.80
get_additional_argsMethod · 0.80
mainMethod · 0.80

Calls 1

headMethod · 0.95

Tested by

no test coverage detected