summaryrefslogtreecommitdiff
path: root/live-mogrify.py
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-21 12:59:14 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-21 12:59:14 +0200
commitd21b4f449ed15a47884f9a4de00b6838486a1bf6 (patch)
tree0ac34b6c5b753c592b267131055bbc2cc84e3ca1 /live-mogrify.py
parent9bd31250f04e808ccb94312480a5ec059030da4b (diff)
vars..
Diffstat (limited to 'live-mogrify.py')
-rw-r--r--live-mogrify.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/live-mogrify.py b/live-mogrify.py
index ec29e59..546d411 100644
--- a/live-mogrify.py
+++ b/live-mogrify.py
@@ -134,13 +134,10 @@ class Listener():
def _set_fn(self, key, value):
if hasattr(self.data_opt, key):
try:
- print(value)
new_opt, misc = self.data_opt_parser.parse_known_args([ '--' + key.replace('_', '-'), str(value) ])
- print('got new opt')
new_value = getattr(new_opt, key)
- print('set {} {}: {}'.format(type(new_value), key, new_value))
setattr(self.data_opt, key, new_value)
- print('set!')
+ print('set {} {}: {}'.format(type(new_value), key, new_value))
except Exception as e:
print('error {} - cant set value {}: {}'.format(e, key, value))
def _get_fn(self):