diff options
-rwxr-xr-x | lib/isodumper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index 63f567e..dea2e21 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -90,14 +90,14 @@ class UDisks2(object): list=[] for dev in devs: - dev_obj =objects[dev['path']][DRIVE] + dev_obj =objects[dev['path']][self.DRIVE] if (dev_obj['ConnectionBus'] == 'usb' or dev_obj['ConnectionBus'] == 'sdio') and \ (dev_obj['Removable'] == 1 or dev_obj['MediaRemovable'] == 1 ): item=[] vend = dev_obj['Vendor'] name = dev_obj['Model'] for block in blocks: - if dev['path'] == objects[block['path']][BLOCK]['Drive']: + if dev['path'] == objects[block['path']][self.BLOCK]['Drive']: dev_name = block['path'].split('/')[-1] path = ''.join([i for i in dev_name if not i.isdigit()]) path = '/dev/' + path |