diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2020-04-22 02:01:14 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2020-04-22 02:01:14 -0400 |
| commit | 3af08665bcb0de3dcfdb31bc14e8bcdc7eddd664 (patch) | |
| tree | 92f3c83ca6ca5fe237e6ccbd2bbfd29ac9e3eb1d /python/examples/export_svg.py | |
| parent | 1e1f04aa38f41667910565906504c8bbc32ccc83 (diff) | |
fix export-svg example opening on windows
Diffstat (limited to 'python/examples/export_svg.py')
| -rwxr-xr-x | python/examples/export_svg.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/examples/export_svg.py b/python/examples/export_svg.py index 1e35d034..e8576d82 100755 --- a/python/examples/export_svg.py +++ b/python/examples/export_svg.py @@ -42,6 +42,8 @@ def save_svg(bv, function): path, 'binaryninja-{filename}-{function}.html'.format(filename=origname, function=address)) outputfile = get_save_filename_input( 'File name for export_svg', 'HTML files (*.html)', filename) + if sys.platfirm == "win32": + outputfile = outputfile.replace('/', '\\') if outputfile is None: return content = render_svg(function, origname) |
