##// END OF EJS Templates
imanay -
r169:170
parent child
Show More
@@ -8,11 +8,14
8 class changeBeam(object):
8 class changeBeam(object):
9
9
10 def __init__(self):
10 def __init__(self):
11 pass
11 self.output = ""
12
12
13 def execute(self, beam="0"):
13 def execute(self, beam="0"):
14 absObj = ABSClient(ipDestino="10.10.10.97")
14 absObj = ABSClient(ipDestino="10.10.10.97")
15 absObj.changeBeam(beam)
15 self.output = absObj.changeBeam(beam)
16
17 def getOutput(self):
18 return self.output
16
19
17
20
18 usage = "::::::::::::\n"
21 usage = "::::::::::::\n"
@@ -4,6 +4,6
4 path1 = os.getcwd()
4 path1 = os.getcwd()
5 lst1 = path1.split("/")
5 lst1 = path1.split("/")
6 lst1.remove("scripts")
6 lst1.remove("scripts")
7 lst1.append("abscontrol")
7 lst1.append("bin")
8 path2 = "/".join(lst1)
8 path2 = "/".join(lst1)
9 sys.path.insert(0,path2) No newline at end of file
9 sys.path.insert(0,path2)
@@ -9,15 +9,18
9 class sendFile(object):
9 class sendFile(object):
10
10
11 def __init__(self):
11 def __init__(self):
12 pass
12 self.output = ""
13
13
14 def execute(self, filename):
14 def execute(self, filename):
15 if os.path.exists(filename):
15 if os.path.exists(filename):
16 absObj = ABSClient(ipDestino="10.10.10.97")
16 absObj = ABSClient(ipDestino="10.10.10.97")
17 absObj.sendFile(filename)
17 self.output = absObj.sendFile(filename)
18 #pass
18 #pass
19 else:
19 else:
20 print "No file"
20 print "No file"
21
22 def getOutput(self):
23 return self.output
21
24
22 usage = "::::::::::::\n"
25 usage = "::::::::::::\n"
23
26
General Comments 0
You need to be logged in to leave comments. Login now