- boxtypes = [
- ('bm750', 'duo.jpg', 'vu_normal.png'),
- ('vuduo2', 'duo2.jpg', 'vu_normal.png'),
- ('vusolo', 'solo.jpg', 'vu_normal.png'),
- ('vusolo2', 'solo2.jpg', 'vu_normal.png'),
- ('vusolose', 'solose.jpg', 'vu_normal.png'),
- ('vuzero', 'zero.jpg', 'vu_normal.png'),
- ('vuultimo', 'ultimo.jpg', 'vu_ultimo.png'),
- ('vuuno', 'uno.jpg', 'vu_normal.png'),
- ]
- import os
- top = '${D}${PLUGINPATH}/public/images/'
- target_box = 'unknown.jpg'
- target_remote = 'ow_remote.png'
- for x in boxtypes:
- if x[0] == '${MACHINE}':
- target_box = x[1]
- target_remote = x[2]
- break
- for root, dirs, files in os.walk(top + 'boxes', topdown=False):
- for name in files:
- if target_box != name and name != 'unknown.jpg':
- os.remove(os.path.join(root, name))
- for root, dirs, files in os.walk(top + 'remotes', topdown=False):
- for name in files:
- if target_remote != name and name != 'ow_remote.png':
- os.remove(os.path.join(root, name))
+ boxtypes = [
+ ('bm750', 'duo.jpg', 'vu_normal.png'),
+ ('vuduo2', 'duo2.jpg', 'vu_duo2.png'),
+ ('vusolo', 'solo.jpg', 'vu_normal.png'),
+ ('vusolo2', 'solo2.jpg', 'vu_normal.png'),
+ ('vusolose', 'solose.jpg', 'vu_normal.png'),
+ ('vuzero', 'zero.jpg', 'vu_normal.png'),
+ ('vuultimo', 'ultimo.jpg', 'vu_ultimo.png'),
+ ('vuuno', 'uno.jpg', 'vu_normal.png'),
+ ('vusolo4k', 'solo4k.png', 'vu_normal.png'),
+ ('vuuno4k', 'uno4k.png', 'vu_normal.png'),
+ ('vuultimo4k', 'ultimo4k.png', 'vu_normal.png'),
+ ('vuuno4kse', 'uno4kse.png', 'vu_brown.png'),
+ ('vuzero4k', 'zero4k.png', 'vu_brown.png'),
+ ('vuduo4k', 'duo4k.png', 'vu_brown.png'),
+ ]
+ import os
+ top = '${D}${PLUGINPATH}/public/images/'
+ target_box = 'unknown.jpg'
+ target_remote = 'ow_remote.png'
+ for x in boxtypes:
+ if x[0] == '${MACHINE}':
+ target_box = x[1]
+ target_remote = x[2]
+ break
+ for root, dirs, files in os.walk(top + 'boxes', topdown=False):
+ for name in files:
+ if target_box != name and name != 'unknown.jpg':
+ os.remove(os.path.join(root, name))
+ for root, dirs, files in os.walk(top + 'remotes', topdown=False):
+ for name in files:
+ if target_remote != name and name != 'ow_remote.png':
+ os.remove(os.path.join(root, name))