diff options
author | Papoteur <papoteur@mageialinux-online.org> | 2016-08-21 21:27:50 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageialinux-online.org> | 2016-08-21 21:27:50 +0200 |
commit | 36bbba9ce6ab59d3c2da49989f96784a083b5b9a (patch) | |
tree | fef5a3e281f29cbb72b9d976709af2f79b1abbea /lib/isodumper.py | |
parent | 14ad75ed202f56daf715f28b84c808279c43e106 (diff) | |
download | isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.tar isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.tar.gz isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.tar.bz2 isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.tar.xz isodumper-36bbba9ce6ab59d3c2da49989f96784a083b5b9a.zip |
Correction of variables names
Diffstat (limited to 'lib/isodumper.py')
-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 |