-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPyTool.py
More file actions
36 lines (26 loc) · 866 Bytes
/
PyTool.py
File metadata and controls
36 lines (26 loc) · 866 Bytes
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
# python Tool script
# ------------------
from Tool import *
class TestPython(Tool):
def Initialise(self):
self.m_log.Log(__file__+" Initialising", self.v_debug, self.m_verbosity)
self.m_variables.Print()
return 1
def Execute(self):
self.m_log.Log(__file__+" Executing", self.v_debug, self.m_verbosity)
return 1
def Finalise(self):
self.m_log.Log(__file__+" Finalising", self.v_debug, self.m_verbosity)
return 1
###################
# ↓ Boilerplate ↓ #
###################
thistool = TestPython()
def SetToolChainVars(m_data_in, m_variables_in, m_log_in):
return thistool.SetToolChainVars(m_data_in, m_variables_in, m_log_in)
def Initialise():
return thistool.Initialise()
def Execute():
return thistool.Execute()
def Finalise():
return thistool.Finalise()