##// END OF EJS Templates
Calling the script with a filename argument
imanay -
r136:137
parent child
Show More
@@ -1,8 +1,12
1 import file
1 import file
2 from client3 import *
2 from client3 import *
3 import sys
3
4
4 filename = "experimento1.abs"
5
6 absObj = ABSClient(ipDestino="10.10.10.97")
5 absObj = ABSClient(ipDestino="10.10.10.97")
7 #absObj = ABSClient()
6 #absObj = ABSClient()
8 absObj.sendFile(filename) No newline at end of file
7 if len(sys.argv) == 2:
8 #filename = "experimento1.abs"
9 filename = sys.argv[1]
10 absObj.sendFile(filename)
11 else:
12 print "Only one argument needed" No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now