sdwire 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sdwire-0.2.4 → sdwire-0.2.5}/PKG-INFO +1 -1
- {sdwire-0.2.4 → sdwire-0.2.5}/pyproject.toml +1 -1
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/backend/device/sdwire.py +4 -4
- {sdwire-0.2.4 → sdwire-0.2.5}/LICENSE +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/README.md +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/__init__.py +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/backend/__init__.py +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/backend/detect.py +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/backend/device/sdwirec.py +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/backend/device/usb_device.py +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/backend/utils.py +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/constants.py +0 -0
- {sdwire-0.2.4 → sdwire-0.2.5}/sdwire/main.py +0 -0
@@ -12,12 +12,12 @@ class SDWire(USBDevice):
|
|
12
12
|
def __init__(self, port_info: PortInfo, generation: int):
|
13
13
|
super().__init__(port_info)
|
14
14
|
self.generation = generation
|
15
|
-
for
|
15
|
+
for child in self.dev_string.children:
|
16
16
|
if (
|
17
|
-
self.dev_string.device_path !=
|
18
|
-
and
|
17
|
+
self.dev_string.device_path != child.device_path
|
18
|
+
and child.device_type == "disk"
|
19
19
|
):
|
20
|
-
self.__block_dev = f"/dev/{
|
20
|
+
self.__block_dev = f"/dev/{child.device_path.split('/')[-1]}"
|
21
21
|
break
|
22
22
|
|
23
23
|
def switch_ts(self):
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|