-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
74 lines (57 loc) · 1.54 KB
/
main.py
File metadata and controls
74 lines (57 loc) · 1.54 KB
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
#!/usr/local/bin/python3
# -*-coding:utf-8 -*-
"""
# ==================================================
# Name : main
# Action : main for all
# Explanation : 負責『 PiBot 』的整體運作
# Self Class used : Timer
# Note : use 'pydoc3 -p 9999' to read doc
# ==================================================
"""
from module_for_all import log_thing
# import sys
# import os
from import_main import *
__author__ = "Asa Ewing"
__version__ = "1.0.0"
print(sys.path)
class mainPiBot(log_thing.Timer):
"""
* ==================================================
* Self Class : mainPiBot
* Extends : log_thing.Timer
* Explanation : 負責『 PiBot 』的整體運作
* ==================================================
"""
def __init__(self):
"""
1. need to super, send a class object
"""
super().__init__(self.__class__)
# self.timer = None
# self.nowTime = log_thing.DateTime()
return
def mainEnd(self):
""" End """
self.timerEnd()
self.printTime()
return
def mainStart(self):
""" Start """
self.printTime()
self.timerStart()
self.mainEnd()
return
if __name__ == "__main__":
main = mainPiBot()
log_thing.DocOut(__file__, __doc__).output()
try:
main.mainStart()
except KeyboardInterrupt:
print("\nInterrupted\n")
main.mainEnd()
try:
sys.exit(0)
except SystemExit:
os._exit(0)