@@ -40,10 +40,7 | |||
|
40 | 40 | |
|
41 | 41 | def sendFile(self, filename): |
|
42 | 42 | |
|
43 |
|
|
|
44 | tmp = self.__readFile(filename) | |
|
45 | #Sending content of file and the file name | |
|
46 | data = filename + '\n' + tmp | |
|
43 | data = self.__readFile(filename) | |
|
47 | 44 | self.__ConnectionWithCentralControl(cmd = "SNDF", data = data) |
|
48 | 45 | |
|
49 | 46 | def changeBeam(self, newBeam): |
@@ -61,7 +58,9 | |||
|
61 | 58 | fobj = open(filename,"r") |
|
62 | 59 | listData = fobj.readlines() |
|
63 | 60 | fobj.close() |
|
64 |
|
|
|
61 | tmp = "".join(listData) | |
|
62 | #Adding filename to the begining of the data | |
|
63 | data = filename + '\n' + tmp | |
|
65 | 64 | return data |
|
66 | 65 | |
|
67 | 66 |
General Comments 0
You need to be logged in to leave comments.
Login now