mirror of
https://github.com/SL-RU/ranger_udisk_menu.git
synced 2024-09-20 12:21:22 +02:00
commit
fdf2e4f847
3
menu.py
3
menu.py
@ -35,7 +35,8 @@ class ChoosePartition:
|
|||||||
|
|
||||||
def _read_partitions(self):
|
def _read_partitions(self):
|
||||||
r = subprocess.check_output(['lsblk', '--all', '--json', '-O'])
|
r = subprocess.check_output(['lsblk', '--all', '--json', '-O'])
|
||||||
self.blkinfo = json.loads(r)
|
r = r.decode().replace('0B,', '\"0B\",')
|
||||||
|
self.blkinfo = json.loads(r.encode())
|
||||||
partn = 0
|
partn = 0
|
||||||
for bd in self.blkinfo['blockdevices']:
|
for bd in self.blkinfo['blockdevices']:
|
||||||
if 'children' not in bd:
|
if 'children' not in bd:
|
||||||
|
Loading…
Reference in New Issue
Block a user