##// END OF EJS Templates
imanay -
r235:236
parent child
Show More
@@ -45,9 +45,9
45 45 answer = self.__ConnectionWithCentralControl(cmd = "SNDF", data = data)
46 46 return answer
47 47
48 def readFile(self):
48 def readFile(self,filename):
49 49
50 data = "optional"
50 data = filename
51 51 file = self.__ConnectionWithCentralControl(cmd = "GETF", data = data)
52 52
53 53 return file
@@ -11,9 +11,9
11 11 def __init__(self):
12 12 self.output = ""
13 13
14 def execute(self):
14 def execute(self, filename):
15 15 absObj = ABSClient(ipDestino="10.10.20.27")
16 self.output = absObj.readFile()
16 self.output = absObj.readFile(filename)
17 17
18 18 def getOutput(self):
19 19 return self.output
@@ -22,7 +22,8
22 22
23 23 if __name__ == '__main__':
24 24
25 filename = "tres_apuntes.ab1"
25 26 app = readFile()
26 app.execute()
27 app.execute(filename)
27 28
28 29 print app.output
General Comments 0
You need to be logged in to leave comments. Login now