diff options
Diffstat (limited to 'qtip/util')
-rw-r--r-- | qtip/util/export_to.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qtip/util/export_to.py b/qtip/util/export_to.py index 17adae7c..4d054c66 100644 --- a/qtip/util/export_to.py +++ b/qtip/util/export_to.py @@ -11,8 +11,9 @@ import json def export_to_file(func): - def func_wrapper(spec, metrics, dest=None): - content = func(spec, metrics) + def func_wrapper(*args, **kwargs): + dest = kwargs.pop('dest', None) + content = func(*args, **kwargs) if dest is not None: with open(dest, 'w+') as f: f.write(json.dumps(content, indent=2)) |