eric6/MicroPython/CircuitPythonDevices.py

branch
micropython
changeset 7084
3eddfc540614
parent 7082
ec199ef0cfc6
child 7092
7414b3b012b1
equal deleted inserted replaced
7083:217862c28319 7084:3eddfc540614
133 try: 133 try:
134 for disk in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ': 134 for disk in 'ABCDEFGHIJKLMNOPQRSTUVWXYZ':
135 path = '{0}:\\'.format(disk) 135 path = '{0}:\\'.format(disk)
136 if (os.path.exists(path) and 136 if (os.path.exists(path) and
137 getVolumeName(path) == 'CIRCUITPY'): 137 getVolumeName(path) == 'CIRCUITPY'):
138 deviceDirectory = path 138 deviceDirectory = path
139 break 139 break
140 finally: 140 finally:
141 ctypes.windll.kernel32.SetErrorMode(oldMode) 141 ctypes.windll.kernel32.SetErrorMode(oldMode)
142 else: 142 else:
143 # we are on a Linux or macOS platform 143 # we are on a Linux or macOS platform

eric ide

mercurial