@@ -1,35 +1,35 | |||
|
1 | 1 | import optparse, os, sys No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | pathFile = os.path.dirname(os.path.abspath(__file__)) No newline at end of file |
|
4 | 4 | sys.path.append(os.path.split(pathFile)[0]) No newline at end of file |
|
5 | 5 | No newline at end of file |
|
6 | 6 | from bin.client3 import ABSClient No newline at end of file |
|
7 | 7 | No newline at end of file |
|
8 | 8 | class changeBeam(object): No newline at end of file |
|
9 | 9 | No newline at end of file |
|
10 | 10 | def __init__(self): No newline at end of file |
|
11 | 11 | self.output = "" No newline at end of file |
|
12 | 12 | No newline at end of file |
|
13 | 13 | def execute(self, beam="0"): No newline at end of file |
|
14 | 14 | #absObj = ABSClient(ipDestino="10.10.10.97") |
|
15 | No newline at end of file | |
|
15 | absObj = ABSClient(ipDestino="10.10.20.26") No newline at end of file | |
|
16 | 16 | self.output = absObj.changeBeam(beam) No newline at end of file |
|
17 | 17 | No newline at end of file |
|
18 | 18 | def getOutput(self): No newline at end of file |
|
19 | 19 | return self.output No newline at end of file |
|
20 | 20 | No newline at end of file |
|
21 | 21 | No newline at end of file |
|
22 | 22 | usage = "::::::::::::\n" No newline at end of file |
|
23 | 23 | No newline at end of file |
|
24 | 24 | if __name__ == '__main__': No newline at end of file |
|
25 | 25 | No newline at end of file |
|
26 | 26 | parser = optparse.OptionParser(usage=usage) No newline at end of file |
|
27 | 27 | No newline at end of file |
|
28 | 28 | parser.add_option("-n", "--beam", dest="pattern", type="string", default="0", help="Number of Pattern") No newline at end of file |
|
29 | 29 | No newline at end of file |
|
30 | 30 | (options, args) = parser.parse_args() No newline at end of file |
|
31 | 31 | No newline at end of file |
|
32 | 32 | beam = options.pattern No newline at end of file |
|
33 | 33 | No newline at end of file |
|
34 | 34 | app = changeBeam() No newline at end of file |
|
35 | 35 | app.execute(beam) No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now