51 ): |
51 ): |
52 self.__deviceVolumeName = deviceData["data_volume"] |
52 self.__deviceVolumeName = deviceData["data_volume"] |
53 self.__directAccess = bool(deviceData["data_volume"]) |
53 self.__directAccess = bool(deviceData["data_volume"]) |
54 self.__deviceName = deviceData["description"] |
54 self.__deviceName = deviceData["description"] |
55 |
55 |
56 self.__workspace = self.__findWorkspace() |
56 if self.__directAccess: |
|
57 self.__workspace = self.__findWorkspace() |
57 |
58 |
58 def setButtons(self): |
59 def setButtons(self): |
59 """ |
60 """ |
60 Public method to enable the supported action buttons. |
61 Public method to enable the supported action buttons. |
61 """ |
62 """ |
176 @type bool |
177 @type bool |
177 @return workspace directory used for saving files |
178 @return workspace directory used for saving files |
178 @rtype str |
179 @rtype str |
179 """ |
180 """ |
180 # Attempts to find the path on the filesystem that represents the |
181 # Attempts to find the path on the filesystem that represents the |
181 # plugged in PyBoard board. |
182 # plugged in board. |
182 deviceDirectories = Utilities.findVolume(self.__deviceVolumeName, |
183 deviceDirectories = Utilities.findVolume(self.__deviceVolumeName, |
183 findAll=True) |
184 findAll=True) |
184 |
185 |
185 if deviceDirectories: |
186 if deviceDirectories: |
186 if len(deviceDirectories) == 1: |
187 if len(deviceDirectories) == 1: |