eric6/MicroPython/GenericMicroPythonDevices.py

changeset 8110
c5af1d1d2a78
parent 8099
522946e53835
child 8117
aaa5e0eacd4e
--- a/eric6/MicroPython/GenericMicroPythonDevices.py	Wed Feb 17 17:51:42 2021 +0100
+++ b/eric6/MicroPython/GenericMicroPythonDevices.py	Thu Feb 18 17:21:12 2021 +0100
@@ -53,7 +53,8 @@
                 self.__directAccess = bool(deviceData["data_volume"])
                 self.__deviceName = deviceData["description"]
                 
-                self.__workspace = self.__findWorkspace()
+                if self.__directAccess:
+                    self.__workspace = self.__findWorkspace()
     
     def setButtons(self):
         """
@@ -178,7 +179,7 @@
         @rtype str
         """
         # Attempts to find the path on the filesystem that represents the
-        # plugged in PyBoard board.
+        # plugged in board.
         deviceDirectories = Utilities.findVolume(self.__deviceVolumeName,
                                                  findAll=True)
         

eric ide

mercurial