From 3af08665bcb0de3dcfdb31bc14e8bcdc7eddd664 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 22 Apr 2020 02:01:14 -0400 Subject: fix export-svg example opening on windows --- python/examples/export_svg.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') 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) -- cgit v1.3.1